3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { protected $x = "success"; } $a = new Test; ($_ = function () { echo $this->x."\n"; })->call($a); // Valid, but "Expected: semicolon" (function () { echo $this->x."\n"; })->call($a); // Valid, but "Expected: semicolon" // function () { echo $this->x."\n"; }->call($a); // PHP Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR)

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.40.0180.00318.85
8.3.30.0140.00018.65
8.3.20.0040.00420.18
8.3.10.0040.00421.90
8.3.00.0050.00323.66
8.2.170.0040.01122.96
8.2.160.0100.00320.47
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0080.00019.77
8.2.120.0070.00026.35
8.2.110.0030.00621.06
8.2.100.0070.00417.93
8.2.90.0030.00519.27
8.2.80.0050.00317.97
8.2.70.0060.00317.38
8.2.60.0030.00717.68
8.2.50.0050.00518.07
8.2.40.0070.00320.59
8.2.30.0000.00719.34
8.2.20.0000.00717.59
8.2.10.0000.00817.97
8.2.00.0000.00818.05
8.1.270.0030.01223.96
8.1.260.0030.00628.09
8.1.250.0050.00228.09
8.1.240.0080.00822.43
8.1.230.0000.01119.13
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0030.00717.35
8.1.190.0000.00817.13
8.1.180.0030.00718.10
8.1.170.0040.00418.66
8.1.160.0000.00720.69
8.1.150.0000.01018.89
8.1.140.0040.00419.58
8.1.130.0020.00517.70
8.1.120.0040.00417.36
8.1.110.0030.00517.35
8.1.100.0040.00417.33
8.1.90.0030.00617.38
8.1.80.0060.00317.46
8.1.70.0040.00417.36
8.1.60.0040.00417.47
8.1.50.0030.00517.42
8.1.40.0000.00717.50
8.1.30.0000.00817.66
8.1.20.0070.00017.67
8.1.10.0000.00717.46
8.1.00.0040.00417.39
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0040.00418.43
8.0.270.0000.00717.25
8.0.260.0030.00317.18
8.0.250.0030.00316.84
8.0.240.0030.00516.94
8.0.230.0030.00316.86
8.0.220.0070.00016.91
8.0.210.0070.00016.90
8.0.200.0030.00316.84
8.0.190.0000.00716.98
8.0.180.0000.00816.82
8.0.170.0000.00916.81
8.0.160.0040.00416.82
8.0.150.0030.00316.85
8.0.140.0070.00016.74
8.0.130.0050.00013.36
8.0.120.0050.00316.75
8.0.110.0000.00716.76
8.0.100.0050.00316.84
8.0.90.0030.00616.75
8.0.80.0070.01016.83
8.0.70.0000.00716.79
8.0.60.0030.00316.71
8.0.50.0020.00516.89
8.0.30.0140.00517.12
8.0.20.0040.01517.40
8.0.10.0000.00716.96
8.0.00.0130.00516.74
7.4.330.0000.00516.77
7.4.320.0070.00016.49
7.4.300.0000.00716.49
7.4.290.0070.00316.55
7.4.280.0040.00416.50
7.4.270.0000.00716.54
7.4.260.0030.00316.55
7.4.250.0050.00316.46
7.4.240.0010.00616.55
7.4.230.0070.00016.60
7.4.220.0070.01116.55
7.4.210.0090.00616.46
7.4.200.0000.00716.60
7.4.160.0060.01016.55
7.4.150.0090.01517.40
7.4.140.0120.00917.86
7.4.130.0100.01016.34
7.4.120.0120.00616.54
7.4.110.0130.01016.44
7.4.100.0210.00016.54
7.4.90.0140.00316.47
7.4.80.0120.00619.39
7.4.70.0100.01316.64
7.4.60.0040.01216.54
7.4.50.0060.00916.49
7.4.40.0070.01016.36
7.4.30.0100.00616.54
7.4.00.0060.00915.00
7.3.330.0000.00513.23
7.3.320.0000.00513.19
7.3.310.0070.00016.26
7.3.300.0000.00716.09
7.3.290.0110.00416.20
7.3.280.0050.01116.19
7.3.270.0120.00617.40
7.3.260.0040.01916.40
7.3.250.0070.01116.45
7.3.240.0050.01416.46
7.3.230.0030.01316.39
7.3.210.0110.00716.38
7.3.200.0100.00719.39
7.3.190.0090.00916.22
7.3.180.0080.00816.10
7.3.170.0070.01416.48
7.3.160.0090.00616.36
7.2.330.0160.00316.41
7.2.320.0100.00716.78
7.2.310.0100.00616.70
7.2.300.0040.01416.60
7.2.290.0000.01616.50
7.2.60.0110.00416.71
7.2.00.0030.01219.21
7.1.200.0150.00915.69
7.1.100.0040.00818.00
7.1.70.0000.01116.93
7.1.60.0040.02119.28
7.1.50.0060.01016.53
7.1.00.0000.08022.45
7.0.200.0030.00816.38
7.0.60.0070.06021.75
7.0.50.0130.06017.89
7.0.40.0100.08020.04
7.0.30.0430.06020.23
7.0.20.0200.07320.15
7.0.10.0070.08720.20
7.0.00.0030.05320.14
5.6.280.0030.04020.93
5.6.210.0100.04720.74
5.6.200.0030.04018.29
5.6.190.0000.05720.52
5.6.180.0430.05020.50
5.6.170.0230.07720.54
5.6.160.0170.07020.47
5.6.150.0070.04318.18
5.6.140.0100.08018.19
5.6.130.0000.04318.15
5.6.120.0200.06720.99
5.6.110.0130.05721.15
5.6.100.0170.06320.97
5.6.90.0230.07320.99
5.6.80.0070.08320.53
5.5.350.3230.03020.45
5.5.340.0000.04718.07
5.5.330.0070.08720.27
5.5.320.0200.04020.27
5.5.310.0170.04720.22
5.5.300.0030.06018.05
5.5.290.0100.06317.96
5.5.280.0070.05720.85
5.5.270.0100.06320.89
5.5.260.0070.05720.87
5.5.250.0070.06320.58
5.5.240.0130.07720.27

preferences:
47.19 ms | 400 KiB | 5 Q