3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function Test(){ echo 'oki'; } public function Test_($x){ echo $x; } } $t1 = new Test(); $t2 = new Test(100);

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.70.0090.01218.31
8.3.60.0090.00616.73
8.3.50.0110.00822.04
8.3.40.0070.00718.38
8.3.30.0140.00018.54
8.3.20.0040.00420.18
8.3.10.0030.00523.61
8.3.00.0040.00419.13
8.2.190.0110.00416.58
8.2.180.0150.00316.50
8.2.170.0070.00722.96
8.2.160.0130.00720.57
8.2.150.0000.00724.18
8.2.140.0070.00024.66
8.2.130.0050.00226.16
8.2.120.0060.00317.63
8.2.110.0100.00720.52
8.2.100.0080.00417.53
8.2.90.0040.00419.22
8.2.80.0030.00517.97
8.2.70.0030.00617.63
8.2.60.0000.00817.88
8.2.50.0040.00418.07
8.2.40.0030.00619.52
8.2.30.0000.00720.63
8.2.20.0040.00417.54
8.2.10.0050.00318.03
8.2.00.0030.00517.95
8.1.280.0100.00325.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00023.91
8.1.230.0060.00622.66
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0000.01117.23
8.1.190.0030.00517.22
8.1.180.0040.00418.10
8.1.170.0040.00418.93
8.1.160.0000.00721.94
8.1.150.0080.00020.48
8.1.140.0050.00319.47
8.1.130.0000.00717.65
8.1.120.0000.00717.29
8.1.110.0080.00017.36
8.1.100.0000.00817.30
8.1.90.0070.00017.42
8.1.80.0000.00817.36
8.1.70.0030.00317.28
8.1.60.0060.00317.57
8.1.50.0040.00417.34
8.1.40.0000.01017.35
8.1.30.0040.00417.49
8.1.20.0050.00317.47
8.1.10.0060.00317.41
8.1.00.0050.00217.41
8.0.300.0070.00018.77
8.0.290.0000.00816.75
8.0.280.0030.00318.38
8.0.270.0070.00017.11
8.0.260.0000.00617.14
8.0.250.0080.00016.80
8.0.240.0000.00816.89
8.0.230.0030.00316.90
8.0.220.0000.00716.81
8.0.210.0030.00316.83
8.0.200.0030.00516.76
8.0.190.0050.00316.78
8.0.180.0040.00416.87
8.0.170.0000.00916.84
8.0.160.0000.00716.73
8.0.150.0000.00716.75
8.0.140.0000.00816.81
8.0.130.0030.00313.18
8.0.120.0050.00516.79
8.0.110.0040.00416.77
8.0.100.0000.00816.70
8.0.90.0040.00416.86
8.0.80.0130.00716.87
8.0.70.0030.00616.71
8.0.60.0040.00416.66
8.0.50.0050.00316.66
8.0.30.0060.01316.93
8.0.20.0110.00717.40
8.0.10.0070.00016.96
8.0.00.0090.01016.76
7.4.330.0060.00015.08
7.4.320.0000.00616.55
7.4.300.0030.00316.51
7.4.290.0030.00316.48
7.4.280.0030.00616.58
7.4.270.0000.00616.50
7.4.260.0030.00616.56
7.4.250.0000.00716.47
7.4.240.0030.00316.62
7.4.230.0000.00816.63
7.4.220.0040.01416.50
7.4.210.0070.00716.59
7.4.200.0070.00016.69
7.4.160.0120.00316.63
7.4.150.0030.01417.40
7.4.140.0130.00917.86
7.4.130.0100.00916.55
7.4.120.0090.00816.58
7.4.110.0140.00416.52
7.4.100.0150.00316.55
7.4.90.0130.00416.56
7.4.80.0070.01019.39
7.4.70.0080.00816.59
7.4.60.0090.00616.46
7.4.50.0060.00316.61
7.4.40.0060.01216.57
7.4.30.0070.01016.54
7.4.10.0050.01214.86
7.4.00.0070.01014.93
7.3.330.0000.00513.14
7.3.320.0050.00013.24
7.3.310.0030.00316.39
7.3.300.0030.00316.26
7.3.290.0030.00316.34
7.3.280.0120.00616.32
7.3.270.0100.00717.40
7.3.260.0140.00316.38
7.3.250.0110.01016.38
7.3.240.0090.00916.31
7.3.230.0060.01216.39
7.3.210.0150.00416.53
7.3.200.0060.01616.25
7.3.190.0130.01016.36
7.3.180.0100.00716.32
7.3.170.0070.01416.50
7.3.160.0100.00716.50
7.3.130.0050.01014.56
7.3.120.0060.01214.81
7.3.110.0070.01114.59
7.3.100.0050.01114.71
7.3.90.0070.00714.63
7.3.80.0050.00514.70
7.3.70.0060.01014.65
7.3.60.0040.01214.74
7.3.50.0030.00914.70
7.3.40.0070.00814.70
7.3.30.0060.00714.79
7.3.20.0070.00816.54
7.3.10.0030.00816.48
7.3.00.0100.00416.59
7.2.330.0070.01116.65
7.2.320.0090.01116.67
7.2.310.0130.00916.72
7.2.300.0070.01016.57
7.2.290.0060.01216.65
7.2.260.0090.00815.01
7.2.250.0090.00914.88
7.2.240.0010.01514.92
7.2.230.0080.00714.86
7.2.220.0050.01115.05
7.2.210.0050.00915.03
7.2.200.0060.00914.94
7.2.190.0050.01114.92
7.2.180.0060.00614.85
7.2.170.0020.01314.93
7.2.160.0070.00715.03
7.2.150.0090.00716.77
7.2.140.0050.00816.96
7.2.130.0100.00716.69
7.2.120.0070.00316.83
7.2.110.0060.00816.74
7.2.100.0040.00916.90
7.2.90.0030.01116.82
7.2.80.0060.00716.92
7.2.70.0070.00916.84
7.2.60.0060.00716.87
7.2.50.0040.01016.80
7.2.40.0040.00816.68
7.2.30.0060.00916.97
7.2.20.0020.01016.66
7.2.10.0070.00916.86
7.2.00.0070.00617.58
7.1.330.0050.01015.64
7.1.320.0040.00915.61
7.1.310.0060.00715.75
7.1.300.0060.00715.53
7.1.290.0050.01015.60
7.1.280.0080.00515.58
7.1.270.0030.00815.58
7.1.260.0070.00515.63
7.1.250.0070.00715.62
7.1.240.0060.00715.67
7.1.230.0070.00715.65
7.1.220.0060.01015.38
7.1.210.0080.00615.60
7.1.200.0060.00615.44
7.1.190.0050.00915.56
7.1.180.0050.00715.62
7.1.170.0070.00715.62
7.1.160.0050.00715.47
7.1.150.0060.00915.54
7.1.140.0080.00615.69
7.1.130.0050.00915.62
7.1.120.0050.00815.59
7.1.110.0060.00815.73
7.1.100.0060.00516.18
7.1.90.0050.01015.71
7.1.80.0090.00515.68
7.1.70.0050.00515.98
7.1.60.0050.01016.61
7.1.50.0040.00915.89
7.1.40.0060.00515.69
7.1.30.0070.00815.61
7.1.20.0050.00615.54
7.1.10.0030.00715.67
7.1.00.0080.02117.26
7.0.330.0060.00815.35
7.0.320.0020.01015.20
7.0.310.0040.00915.29
7.0.300.0060.00715.27
7.0.290.0020.00815.32
7.0.280.0040.00815.21
7.0.270.0040.01115.28
7.0.260.0010.01215.22
7.0.250.0060.00515.33
7.0.240.0080.00715.43
7.0.230.0040.00915.37
7.0.220.0030.01115.38
7.0.210.0050.00615.44
7.0.200.0050.00715.14
7.0.190.0030.00815.36
7.0.180.0080.00515.16
7.0.170.0040.01115.16
7.0.160.0050.00915.35
7.0.150.0060.00715.34
7.0.140.0040.00815.28
7.0.130.0030.00915.34
7.0.120.0050.00715.35
7.0.110.0040.00815.36
7.0.100.0050.00515.24
7.0.90.0050.00815.30
7.0.80.0060.00415.17
7.0.70.0020.01015.26
7.0.60.0040.02816.40
7.0.50.0060.02415.97
7.0.40.0080.01815.12
7.0.30.0030.02215.07
7.0.20.0100.01715.06
7.0.10.0060.01515.04
7.0.00.0040.02815.13
5.6.400.0070.00714.32
5.6.390.0040.00914.31
5.6.380.0080.00514.40
5.6.370.0060.00814.39
5.6.360.0050.00814.35
5.6.350.0070.00914.25
5.6.340.0030.01014.46
5.6.330.0050.01014.35
5.6.320.0050.00614.27
5.6.310.0060.00914.29
5.6.300.0050.00814.34
5.6.290.0060.00714.35
5.6.280.0040.01915.94
5.6.270.0040.00914.23
5.6.260.0030.01114.31
5.6.250.0070.00714.22
5.6.240.0010.01014.15
5.6.230.0050.00714.30
5.6.220.0050.00814.40
5.6.210.0030.02515.76
5.6.200.0060.02415.19
5.6.190.0050.02615.75
5.6.180.0100.02315.84
5.6.170.0130.01215.90
5.6.160.0030.02115.83
5.6.150.0060.02615.20
5.6.140.0030.02715.11
5.6.130.0050.01515.25
5.6.120.0070.02415.93
5.6.110.0080.02015.95
5.6.100.0060.02615.82
5.6.90.0100.01916.01
5.6.80.0070.01515.81
5.6.70.0020.01014.22
5.6.60.0070.00814.17
5.6.50.0050.00814.18
5.6.40.0050.00814.16
5.6.30.0050.00514.21
5.6.20.0030.01214.25
5.6.10.0040.00814.27
5.6.00.0060.00814.06
5.5.380.0050.00914.37
5.5.370.0060.00714.20
5.5.360.0060.00714.24
5.5.350.0750.01415.64
5.5.340.0050.02615.05
5.5.330.0060.02915.73
5.5.320.0110.02515.58
5.5.310.0130.02115.71
5.5.300.0040.01515.19
5.5.290.0080.02615.14
5.5.280.0040.02015.90
5.5.270.0060.02415.75
5.5.260.0070.02515.86
5.5.250.0040.02615.77
5.5.240.0050.01515.70
5.5.230.0050.00714.11
5.5.220.0030.01014.10
5.5.210.0020.00914.00
5.5.200.0030.00714.10
5.5.190.0060.00513.95
5.5.180.0100.00414.11
5.5.170.0030.01114.05
5.5.160.0040.00614.17
5.5.150.0070.00414.30
5.5.140.0070.00714.20
5.5.130.0050.00614.15
5.5.120.0070.00614.03
5.5.110.0030.01013.97
5.5.100.0020.01014.19
5.5.90.0040.00814.20
5.5.80.0060.00414.13
5.5.70.0040.00914.32
5.5.60.0070.00514.15
5.5.50.0090.00714.18
5.5.40.0050.01014.03
5.5.30.0060.00714.21
5.5.20.0010.01414.11
5.5.10.0030.01114.11
5.5.00.0050.00913.99

preferences:
53.59 ms | 401 KiB | 5 Q