3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar(int $arg) { return $arg; } } $foo = new Foo(); var_dump($foo->bar('1'));

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.01116.50
8.3.50.0070.01421.98
8.3.40.0100.01018.71
8.3.30.0040.01118.71
8.3.20.0070.00020.05
8.3.10.0040.00423.54
8.3.00.0040.00419.26
8.2.180.0000.01416.50
8.2.170.0070.00722.96
8.2.160.0090.00620.45
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00617.61
8.2.120.0070.00026.35
8.2.110.0050.00521.05
8.2.100.0070.00417.66
8.2.90.0080.00017.48
8.2.80.0030.00617.97
8.2.70.0000.01217.00
8.2.60.0060.00317.80
8.2.50.0040.00418.07
8.2.40.0040.00419.41
8.2.30.0000.00720.49
8.2.20.0040.00417.66
8.2.10.0050.00317.91
8.2.00.0050.00217.96
8.1.280.0140.00325.92
8.1.270.0000.00923.77
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0030.00622.13
8.1.230.0080.00420.88
8.1.220.0040.00417.74
8.1.210.0060.00319.85
8.1.200.0060.00317.23
8.1.190.0080.00017.23
8.1.180.0060.00318.10
8.1.170.0080.00018.51
8.1.160.0000.00721.90
8.1.150.0040.00418.86
8.1.140.0080.00019.45
8.1.130.0030.00317.59
8.1.120.0030.00317.41
8.1.110.0030.00517.41
8.1.100.0040.00417.35
8.1.90.0040.00417.29
8.1.80.0070.00017.28
8.1.70.0040.00417.26
8.1.60.0000.00817.46
8.1.50.0000.00817.57
8.1.40.0030.00717.40
8.1.30.0000.00817.69
8.1.20.0040.00417.59
8.1.10.0040.00417.60
8.1.00.0040.00417.52
8.0.300.0080.00020.03
8.0.290.0040.00416.88
8.0.280.0000.00718.29
8.0.270.0070.00017.23
8.0.260.0030.00617.18
8.0.250.0030.00316.84
8.0.240.0060.00316.96
8.0.230.0030.00316.83
8.0.220.0000.00616.78
8.0.210.0000.00716.90
8.0.200.0030.00316.99
8.0.190.0040.00416.94
8.0.180.0070.00016.89
8.0.170.0080.00416.93
8.0.160.0000.00716.91
8.0.150.0000.00716.81
8.0.140.0000.00816.71
8.0.130.0000.00613.33
8.0.120.0030.00616.87
8.0.110.0000.00716.91
8.0.100.0000.00716.76
8.0.90.0000.00716.88
8.0.80.0060.00916.84
8.0.70.0030.00516.71
8.0.60.0000.00716.92
8.0.50.0040.00416.84
8.0.30.0160.01117.09
8.0.20.0110.00817.40
8.0.10.0040.00417.06
8.0.00.0090.01016.76
7.4.330.0050.00016.89
7.4.320.0040.00416.43
7.4.300.0060.00016.55
7.4.290.0070.00016.52
7.4.280.0030.00416.43
7.4.270.0040.00416.48
7.4.260.0000.00716.55
7.4.250.0080.00016.61
7.4.240.0030.00416.49
7.4.230.0030.00316.48
7.4.220.0070.01016.63
7.4.210.0080.00816.46
7.4.200.0000.00716.54
7.4.160.0120.00316.57
7.4.150.0100.00717.40
7.4.140.0110.00917.86
7.4.130.0110.00616.45
7.4.120.0080.01016.58
7.4.110.0100.00716.44
7.4.100.0100.01316.51
7.4.90.0040.01416.56
7.4.80.0120.00919.39
7.4.70.0090.00916.45
7.4.60.0050.00816.59
7.4.50.0040.01116.66
7.4.40.0030.01316.23
7.4.30.0090.00916.43
7.4.00.0050.01114.98
7.3.330.0050.00013.10
7.3.320.0000.00713.20
7.3.310.0030.00316.28
7.3.300.0050.00216.07
7.3.290.0040.01116.22
7.3.280.0090.01016.21
7.3.270.0130.00317.40
7.3.260.0120.00616.46
7.3.250.0130.00516.19
7.3.240.0080.01016.33
7.3.230.0120.00916.39
7.3.210.0160.00316.41
7.3.200.0170.00016.55
7.3.190.0070.01116.38
7.3.180.0110.00616.20
7.3.170.0120.01016.27
7.3.160.0090.00616.41
7.3.120.0040.01414.67
7.3.110.0060.00614.77
7.3.100.0000.01314.79
7.3.90.0070.00714.76
7.3.80.0070.00714.90
7.3.70.0090.00414.84
7.3.60.0070.00714.68
7.3.50.0040.00714.87
7.3.40.0040.01114.61
7.3.30.0040.00814.76
7.3.20.0060.00616.44
7.3.10.0140.00216.33
7.3.00.0130.00616.57
7.2.330.0090.00916.68
7.2.320.0060.01216.68
7.2.310.0090.00916.70
7.2.300.0030.01416.73
7.2.290.0080.01216.45
7.2.250.0100.00715.11
7.2.240.0060.01115.02
7.2.230.0070.00314.87
7.2.220.0090.00915.12
7.2.210.0060.01014.79
7.2.200.0000.01414.69
7.2.190.0030.01014.93
7.2.180.0040.01114.88
7.2.170.0030.01514.92
7.2.130.0130.01016.54
7.2.120.0060.00916.41
7.2.110.0110.00616.50
7.2.100.0100.00816.27
7.2.90.0040.01116.46
7.2.80.0060.00616.44
7.2.70.0120.00316.20
7.2.60.0050.00816.44
7.2.50.0120.00616.58
7.2.40.0000.01516.29
7.2.30.0060.01216.59
7.2.20.0100.01316.69
7.2.10.0030.01616.55
7.2.00.0040.00917.94
7.1.330.0030.01315.26
7.1.320.0090.00315.84
7.1.310.0030.01415.84
7.1.300.0070.00715.88
7.1.290.0040.01215.80
7.1.280.0050.00315.55
7.1.270.0000.01315.69
7.1.260.0120.00015.77
7.1.250.0040.00815.27
7.1.200.0000.01415.65
7.1.100.0060.00618.13
7.1.70.0000.00716.96
7.1.60.0110.01419.12
7.1.50.0070.01416.90
7.1.00.0030.07722.45
7.0.200.0000.00816.54
7.0.60.0070.03719.98
7.0.50.0030.04317.89
7.0.40.0070.05319.98
7.0.30.0370.07020.19
7.0.20.0230.05720.30
7.0.10.0030.09020.09
7.0.00.0130.07320.16
5.6.280.0030.03021.15
5.6.210.0070.08320.67
5.6.200.0130.08018.14
5.6.190.0100.09020.41
5.6.180.0530.07020.63
5.6.170.0370.07720.55
5.6.160.0070.08320.55
5.6.150.0000.05318.25
5.6.140.0130.06018.25
5.6.130.0070.07318.28
5.6.120.0030.05321.05
5.6.110.0100.08021.01
5.6.100.0070.03721.11
5.6.90.0100.06321.08
5.6.80.0100.07020.36
5.5.350.4030.04720.32
5.5.340.0130.07717.94
5.5.330.0100.06720.35
5.5.320.0030.07020.25
5.5.310.0370.04320.36
5.5.300.0030.08017.91
5.5.290.0100.08017.98
5.5.280.0000.04320.84
5.5.270.0030.04020.96
5.5.260.0100.08020.68
5.5.250.0100.05020.61
5.5.240.0170.03320.34

preferences:
48.25 ms | 401 KiB | 5 Q