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('0b10100111001'));

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.0040.01116.75
8.3.60.0210.00016.63
8.3.50.0120.00921.99
8.3.40.0110.00318.88
8.3.30.0110.00318.88
8.3.20.0070.00020.34
8.3.10.0070.00023.66
8.3.00.0030.00619.38
8.2.190.0090.00916.63
8.2.180.0090.00618.05
8.2.170.0070.01122.96
8.2.160.0070.01020.26
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0040.00419.36
8.2.110.0040.00422.26
8.2.100.0110.00018.22
8.2.90.0080.00019.17
8.2.80.0030.00517.97
8.2.70.0050.00317.36
8.2.60.0000.00718.04
8.2.50.0000.00818.07
8.2.40.0000.00819.12
8.2.30.0040.00420.61
8.2.20.0060.00317.69
8.2.10.0030.00518.00
8.2.00.0000.00717.87
8.1.280.0070.01025.92
8.1.270.0110.00023.84
8.1.260.0070.01126.35
8.1.250.0050.00328.09
8.1.240.0090.00021.99
8.1.230.0080.00319.22
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0100.00017.22
8.1.190.0000.00817.23
8.1.180.0020.00518.10
8.1.170.0090.00020.41
8.1.160.0000.00722.00
8.1.150.0040.00418.73
8.1.140.0040.00419.46
8.1.130.0070.00017.54
8.1.120.0030.00317.30
8.1.110.0040.00417.27
8.1.100.0050.00217.31
8.1.90.0000.00817.42
8.1.80.0040.00417.40
8.1.70.0000.00717.26
8.1.60.0030.00517.55
8.1.50.0040.00417.50
8.1.40.0000.00917.34
8.1.30.0060.00317.54
8.1.20.0050.00317.59
8.1.10.0030.00617.43
8.1.00.0070.00017.40
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.25
8.0.270.0000.00717.23
8.0.260.0030.00317.18
8.0.250.0070.00016.98
8.0.240.0000.00617.03
8.0.230.0030.00316.95
8.0.220.0090.00016.84
8.0.210.0000.00716.91
8.0.200.0070.00016.96
8.0.190.0040.00416.99
8.0.180.0050.00316.82
8.0.170.0030.00516.81
8.0.160.0040.00416.96
8.0.150.0070.00016.85
8.0.140.0000.00716.68
8.0.130.0030.00613.20
8.0.120.0000.00816.85
8.0.110.0030.00516.88
8.0.100.0050.00216.75
8.0.90.0040.00416.79
8.0.80.0120.00316.87
8.0.70.0000.00816.74
8.0.60.0080.00016.92
8.0.50.0000.00816.71
8.0.30.0120.00817.10
8.0.20.0090.01017.40
8.0.10.0040.00416.89
8.0.00.0120.00516.65
7.4.330.0020.00216.73
7.4.320.0030.00316.57
7.4.300.0000.00616.48
7.4.290.0000.00716.55
7.4.280.0080.00016.50
7.4.270.0030.00316.57
7.4.260.0070.00016.62
7.4.250.0050.00216.60
7.4.240.0040.00316.46
7.4.230.0050.00216.63
7.4.220.0090.00916.53
7.4.210.0080.01216.57
7.4.200.0000.00716.50
7.4.160.0160.00816.49
7.4.150.0070.01017.40
7.4.140.0110.00717.86
7.4.130.0100.00816.52
7.4.120.0110.00616.61
7.4.110.0090.00916.39
7.4.100.0080.01116.57
7.4.90.0070.01516.44
7.4.80.0130.00419.39
7.4.70.0070.01116.31
7.4.60.0110.00616.41
7.4.50.0070.00716.46
7.4.40.0140.00316.54
7.4.30.0140.00316.43
7.4.00.0140.00014.87
7.3.330.0050.00013.26
7.3.320.0050.00013.22
7.3.310.0000.00716.11
7.3.300.0070.00016.21
7.3.290.0060.01016.33
7.3.280.0120.00816.31
7.3.270.0120.00617.40
7.3.260.0120.00416.44
7.3.250.0070.01116.22
7.3.240.0140.00616.32
7.3.230.0130.00616.39
7.3.210.0100.00716.42
7.3.200.0110.00616.21
7.3.190.0100.00716.52
7.3.180.0100.00616.43
7.3.170.0100.01316.31
7.3.160.0060.01016.42
7.2.330.0060.01316.67
7.2.320.0110.01116.56
7.2.310.0040.01416.52
7.2.300.0100.00616.70
7.2.290.0070.01116.65
7.2.80.0130.00316.75
7.2.60.0030.01316.51
7.2.50.0000.01316.87
7.1.200.0000.01315.57
7.1.70.0000.00717.13
7.1.60.0060.01919.12
7.1.50.0090.00916.94
7.1.00.0000.07722.31
7.0.200.0120.00616.36
7.0.100.0030.08320.05
7.0.90.0100.08319.95
7.0.80.0130.07719.80
7.0.70.0070.07319.85
7.0.60.0100.07720.05
7.0.50.0100.08020.29
7.0.40.0100.07720.15
7.0.30.0100.08320.13
7.0.20.0100.08020.11
7.0.10.0100.08320.14
7.0.00.0130.07020.09
5.6.280.0130.07320.87
5.6.250.0030.07020.59
5.6.240.0130.07720.50
5.6.230.0070.08720.57
5.6.220.0030.08020.54
5.6.210.0000.08020.55
5.6.200.0100.08020.93
5.6.190.0200.07320.96
5.6.180.0100.07320.97
5.6.170.0070.08721.06
5.6.160.0100.08021.12
5.6.150.0100.06320.95
5.6.140.0100.08021.17
5.6.130.0070.05320.96
5.6.120.0130.07721.14
5.6.110.0100.08021.03
5.6.100.0070.08021.05
5.6.90.0100.08320.89
5.6.80.0100.07720.32
5.6.70.0100.07320.46
5.6.60.0070.07720.55
5.6.50.0070.08320.46
5.6.40.0070.08020.51
5.6.30.0030.08020.41
5.6.20.0130.07020.46
5.6.10.0100.07320.40
5.6.00.0100.06720.30
5.5.380.0100.07020.48
5.5.370.0070.06020.39
5.5.360.0130.07320.43
5.5.350.0030.08720.36
5.5.340.0030.05020.93
5.5.330.0100.04720.90
5.5.320.0070.08020.76
5.5.310.0070.07320.84
5.5.300.0070.05020.79
5.5.290.0000.08720.80
5.5.280.0200.07020.80
5.5.270.0170.07720.72
5.5.260.0030.08020.88
5.5.250.0030.09020.64
5.5.240.0130.07020.25
5.5.230.0070.08320.27
5.5.220.0030.08320.28
5.5.210.0030.06320.31
5.5.200.0100.05020.14
5.5.190.0170.06720.23
5.5.180.0100.07020.21
5.5.160.0070.04320.11
5.5.150.0030.05320.22
5.5.140.0000.08320.08
5.5.130.0130.07020.21
5.5.120.0030.07720.18
5.5.110.0070.08020.23
5.5.100.0100.07720.13
5.5.90.0000.08320.13
5.5.80.0030.08020.10
5.5.70.0070.07720.07
5.5.60.0030.08019.96
5.5.50.0070.07720.14
5.5.40.0070.07720.05
5.5.30.0130.06720.02
5.5.20.0230.03320.02
5.5.10.0100.07319.98
5.5.00.0030.07320.03

preferences:
61.05 ms | 401 KiB | 5 Q