3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Filter { // A constructor in PHP 4 and 5 function __construct(int $a) { echo $a; } } $o1 = new Filter(5); $o2 = new Filter('5');

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.0040.01116.47
8.3.50.0110.00722.11
8.3.40.0090.00618.55
8.3.30.0150.00018.73
8.3.20.0070.00020.22
8.3.10.0110.00421.73
8.3.00.0040.00419.25
8.2.180.0120.00616.38
8.2.170.0130.00322.96
8.2.160.0090.00619.33
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00417.50
8.2.120.0030.00526.35
8.2.110.0100.00020.46
8.2.100.0060.00618.16
8.2.90.0030.00519.23
8.2.80.0080.00017.97
8.2.70.0000.00917.38
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0040.00419.37
8.2.30.0070.00020.49
8.2.20.0030.00617.59
8.2.10.0040.00418.01
8.2.00.0000.00717.98
8.1.280.0120.00625.92
8.1.270.0060.00323.97
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0060.00322.04
8.1.230.0080.00419.00
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.00917.35
8.1.190.0030.00517.10
8.1.180.0040.00418.10
8.1.170.0000.00818.70
8.1.160.0070.00021.89
8.1.150.0000.00718.88
8.1.140.0030.00519.57
8.1.130.0000.00717.64
8.1.120.0000.00717.28
8.1.110.0040.00417.44
8.1.100.0070.00017.37
8.1.90.0000.00717.37
8.1.80.0040.00417.27
8.1.70.0050.00217.38
8.1.60.0000.00817.48
8.1.50.0030.00617.38
8.1.40.0030.00617.48
8.1.30.0060.00317.56
8.1.20.0000.00817.50
8.1.10.0000.00817.53
8.1.00.0040.00417.36
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0050.00318.35
8.0.270.0030.00317.12
8.0.260.0030.00317.28
8.0.250.0000.00917.02
8.0.240.0000.00617.04
8.0.230.0000.00917.03
8.0.220.0030.00316.89
8.0.210.0070.00016.84
8.0.200.0030.00316.93
8.0.190.0080.00016.95
8.0.180.0000.00816.92
8.0.170.0000.00816.91
8.0.160.0050.00216.79
8.0.150.0060.00316.85
8.0.140.0040.00716.75
8.0.130.0030.00313.24
8.0.120.0000.00816.79
8.0.110.0000.00716.79
8.0.100.0000.00716.81
8.0.90.0050.00316.77
8.0.80.0070.00716.92
8.0.70.0040.00416.94
8.0.60.0040.00416.92
8.0.50.0030.00416.76
8.0.30.0110.00917.21
8.0.20.0120.00717.40
8.0.10.0000.00716.80
8.0.00.0130.00416.75
7.4.330.0000.00516.70
7.4.320.0060.00016.58
7.4.300.0000.00616.56
7.4.290.0080.00016.42
7.4.280.0070.00016.48
7.4.270.0070.00016.57
7.4.260.0000.00716.61
7.4.250.0000.00716.54
7.4.240.0020.00516.58
7.4.230.0000.00716.40
7.4.220.0060.01316.46
7.4.210.0130.00716.48
7.4.200.0000.00816.47
7.4.160.0130.00316.29
7.4.150.0090.00917.40
7.4.140.0080.01017.86
7.4.130.0070.01016.67
7.4.120.0100.01016.60
7.4.110.0100.00716.49
7.4.100.0130.00416.43
7.4.90.0110.00616.60
7.4.80.0030.01319.39
7.4.70.0120.00616.68
7.4.60.0110.00516.48
7.4.50.0120.00316.33
7.4.40.0040.01316.22
7.4.30.0060.01216.29
7.4.00.0040.00414.89
7.3.330.0020.00213.01
7.3.320.0030.00313.30
7.3.310.0070.00016.23
7.3.300.0000.00616.11
7.3.290.0050.01116.18
7.3.280.0110.00516.21
7.3.270.0090.00917.40
7.3.260.0080.00816.22
7.3.250.0110.00816.33
7.3.240.0100.01116.53
7.3.230.0090.00916.56
7.3.210.0100.00616.52
7.3.200.0090.00916.25
7.3.190.0150.00316.24
7.3.180.0100.00716.29
7.3.170.0090.01216.29
7.3.160.0160.00316.48
7.2.330.0060.01216.77
7.2.320.0060.01216.30
7.2.310.0040.01216.39
7.2.300.0100.00716.39
7.2.290.0000.01716.76
7.2.60.0040.01116.61
7.2.00.0000.01119.14
7.1.200.0100.00315.84
7.1.100.0060.00617.82
7.1.70.0040.00417.01
7.1.60.0100.01019.36
7.1.50.0090.01317.00
7.1.00.0030.07322.45
7.0.200.0050.00316.51
7.0.60.0070.04720.07
7.0.50.0070.07717.88
7.0.40.0170.06320.12
7.0.30.0230.07020.23
7.0.20.0200.07720.26
7.0.10.0030.08320.25
7.0.00.0100.08720.07
5.6.280.0070.03021.04
5.6.210.0070.05020.61
5.6.200.0100.05018.24
5.6.190.0030.05020.64
5.6.180.0270.08320.61
5.6.170.0270.07320.54
5.6.160.0170.04020.47
5.6.150.0100.07718.27
5.6.140.0070.07018.29
5.6.130.0030.05018.19
5.6.120.0100.05021.08
5.6.110.0130.08720.89
5.6.100.0030.05321.00
5.6.90.0100.08321.00
5.6.80.0130.06320.38
5.5.350.0270.08020.35
5.5.340.0130.06717.99
5.5.330.0000.05720.21
5.5.320.0330.06720.30
5.5.310.0230.06020.41
5.5.300.0030.05318.08
5.5.290.0070.05717.96
5.5.280.0030.04020.97
5.5.270.0170.03320.68
5.5.260.0030.08320.72
5.5.250.0030.08020.50
5.5.240.0270.07320.04

preferences:
54.26 ms | 401 KiB | 5 Q