3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function __construct() { $bar = 'baz'; } function haha() { echo $bar; } }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0070.00718.30
8.3.50.0000.01417.96
8.3.40.0180.00318.68
8.3.30.0110.00318.59
8.3.20.0020.00520.13
8.3.10.0060.00621.68
8.3.00.0080.00019.56
8.2.180.0180.00016.32
8.2.170.0060.01222.96
8.2.160.0100.00318.77
8.2.150.0070.00024.18
8.2.140.0000.00924.66
8.2.130.0070.00019.29
8.2.120.0040.00426.35
8.2.110.0070.00320.53
8.2.100.0070.00417.72
8.2.90.0000.00819.11
8.2.80.0070.00017.97
8.2.70.0100.00017.38
8.2.60.0040.00417.68
8.2.50.0080.00018.10
8.2.40.0040.00420.47
8.2.30.0030.00620.78
8.2.20.0040.00418.04
8.2.10.0050.00317.93
8.2.00.0040.00417.93
8.1.280.0040.01425.92
8.1.270.0000.00822.05
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00620.96
8.1.230.0040.00719.07
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0040.00416.98
8.1.180.0000.00818.10
8.1.170.0000.00818.66
8.1.160.0080.00018.95
8.1.150.0040.00420.50
8.1.140.0000.00719.51
8.1.130.0030.00318.71
8.1.120.0050.00217.34
8.1.110.0000.00817.28
8.1.100.0030.00517.23
8.1.90.0070.00017.32
8.1.80.0000.00717.28
8.1.70.0070.00017.29
8.1.60.0000.00817.33
8.1.50.0050.00317.39
8.1.40.0000.00817.25
8.1.30.0050.00317.43
8.1.20.0060.00317.46
8.1.10.0050.00217.22
8.1.00.0040.00417.20
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.25
8.0.270.0030.00316.98
8.0.260.0000.00718.44
8.0.250.0000.00716.84
8.0.240.0050.00216.85
8.0.230.0060.00316.71
8.0.220.0040.00416.73
8.0.210.0070.00016.71
8.0.200.0040.00416.87
8.0.190.0000.00816.78
8.0.180.0040.00416.71
8.0.170.0070.00016.86
8.0.160.0040.00416.76
8.0.150.0000.00716.71
8.0.140.0000.00716.64
8.0.130.0050.00013.18
8.0.120.0000.00716.68
8.0.110.0040.00416.64
8.0.100.0040.00416.65
8.0.90.0050.00316.78
8.0.80.0120.00916.70
8.0.70.0040.00416.77
8.0.60.0070.00016.75
8.0.50.0070.00016.57
8.0.30.0100.00816.85
8.0.20.0110.00717.40
8.0.10.0070.00016.90
8.0.00.0160.00616.43
7.4.330.0050.00015.55
7.4.320.0000.00716.41
7.4.300.0000.00616.49
7.4.290.0000.00716.49
7.4.280.0000.00716.22
7.4.270.0030.00316.39
7.4.260.0070.00016.35
7.4.250.0000.00716.32
7.4.240.0040.00416.47
7.4.230.0030.00316.50
7.4.220.0030.01616.43
7.4.210.0070.01416.46
7.4.200.0000.00716.53
7.4.160.0110.00516.31
7.4.150.0030.01417.40
7.4.140.0080.00917.86
7.4.130.0120.00616.41
7.4.120.0110.00916.31
7.4.110.0130.00316.21
7.4.100.0150.00916.38
7.4.90.0100.00716.26
7.4.80.0060.01219.39
7.4.70.0080.00816.50
7.4.60.0060.01216.21
7.4.50.0090.00616.23
7.4.40.0160.02616.12
7.4.30.0080.01116.50
7.4.00.0030.01414.88
7.3.330.0050.00013.15
7.3.320.0000.00613.14
7.3.310.0060.00016.20
7.3.300.0030.00316.02
7.3.290.0050.00816.20
7.3.280.0090.00616.17
7.3.270.0120.01217.40
7.3.260.0100.00616.43
7.3.250.0080.01116.38
7.3.240.0020.01416.25
7.3.230.0090.00916.07
7.3.210.0100.01316.46
7.3.200.0070.01416.41
7.3.190.0030.01616.46
7.3.180.0060.01216.40
7.3.170.0120.00316.29
7.3.160.0060.00916.26
7.2.330.0090.01216.48
7.2.320.0090.00916.52
7.2.310.0120.00616.59
7.2.300.0200.00016.63
7.2.290.0100.00616.50
7.2.110.0140.01016.46
7.2.60.0140.00016.36
7.2.00.0030.01019.35
7.1.200.0030.01015.42
7.1.100.0060.00617.89
7.1.70.0110.00416.68
7.1.60.0190.01035.18
7.1.50.0280.01034.40
7.1.40.0160.01634.17
7.1.30.0260.00334.27
7.1.20.0210.01034.38
7.1.10.0090.00616.46
7.1.00.0090.00616.43
7.0.200.0100.00316.64
7.0.190.0070.01316.53
7.0.180.0110.00815.99
7.0.170.0030.01016.11
7.0.160.0060.00816.11
7.0.150.0060.00616.13
7.0.140.0030.01016.19
7.0.130.0090.00616.32
7.0.120.0050.01016.40
7.0.110.0040.01016.09
7.0.100.0030.01016.13
7.0.90.0030.01016.04
7.0.80.0000.01315.98
7.0.70.0070.00716.03
7.0.60.0070.00716.01
7.0.50.0110.00916.16
7.0.40.0130.00616.27
7.0.30.0060.00916.27
7.0.20.0090.00716.21
7.0.10.0260.00614.44
7.0.00.0270.01116.25

preferences:
52.16 ms | 401 KiB | 5 Q