3v4l.org

run code in 300+ PHP versions simultaneously
<?php new class { public $property; function __construct() { $this->property = function() { print"Stuff\n"; }; call_user_func($this->property); ($this->property)(); // nOopss... } };

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.0120.00318.07
8.3.50.0130.00318.03
8.3.40.0090.00918.97
8.3.30.0030.01218.92
8.3.20.0040.00419.34
8.3.10.0000.00821.77
8.3.00.0030.00621.86
8.2.180.0000.01516.38
8.2.170.0080.00822.96
8.2.160.0110.00320.57
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0060.00318.77
8.2.110.0130.00620.78
8.2.100.0100.00317.84
8.2.90.0040.00418.09
8.2.80.0090.00017.97
8.2.70.0080.00017.90
8.2.60.0040.00418.03
8.2.50.0060.00318.10
8.2.40.0000.00719.47
8.2.30.0040.00419.32
8.2.20.0040.00417.94
8.2.10.0000.00717.97
8.2.00.0000.00819.34
8.1.280.0110.01125.92
8.1.270.0030.00522.05
8.1.260.0110.00326.35
8.1.250.0080.00028.09
8.1.240.0070.00323.79
8.1.230.0110.00020.92
8.1.220.0040.00417.74
8.1.210.0000.00818.85
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0000.00818.65
8.1.160.0050.00318.86
8.1.150.0040.00418.83
8.1.140.0000.00722.06
8.1.130.0070.00020.02
8.1.120.0030.00517.40
8.1.110.0060.00317.32
8.1.100.0070.00017.47
8.1.90.0000.00717.41
8.1.80.0030.00517.49
8.1.70.0000.01017.43
8.1.60.0060.00317.66
8.1.50.0030.00617.54
8.1.40.0030.00617.47
8.1.30.0050.00217.59
8.1.20.0040.00417.48
8.1.10.0000.00817.56
8.1.00.0050.00317.40
8.0.300.0040.00420.04
8.0.290.0030.00516.63
8.0.280.0030.00318.44
8.0.270.0050.00217.25
8.0.260.0060.00018.43
8.0.250.0080.00016.91
8.0.240.0050.00316.92
8.0.230.0070.00316.84
8.0.220.0000.00716.89
8.0.210.0000.00816.78
8.0.200.0000.00616.98
8.0.190.0000.00816.84
8.0.180.0000.00716.80
8.0.170.0070.00316.91
8.0.160.0040.00416.89
8.0.150.0080.00316.80
8.0.140.0000.00816.87
8.0.130.0000.00613.31
8.0.120.0000.00716.73
8.0.110.0070.00016.95
8.0.100.0050.00316.91
8.0.90.0000.00716.88
8.0.80.0070.01116.94
8.0.70.0050.00316.77
8.0.60.0050.00316.86
8.0.50.0030.00516.95
8.0.30.0140.00317.11
8.0.20.0080.01117.40
8.0.10.0000.00717.06
8.0.00.0130.00516.64
7.4.330.0050.00015.55
7.4.320.0060.00016.55
7.4.300.0060.00016.51
7.4.290.0040.00416.50
7.4.280.0030.00516.54
7.4.270.0030.00316.49
7.4.260.0030.00316.48
7.4.250.0000.00816.51
7.4.240.0040.00416.61
7.4.230.0070.00016.67
7.4.220.0040.00416.70
7.4.210.0070.01116.54
7.4.200.0030.00316.49
7.4.160.0130.00416.52
7.4.140.0070.01017.86
7.4.130.0030.01316.47
7.4.120.0130.01116.48
7.4.110.0080.00916.46
7.4.100.0030.01416.45
7.4.90.0110.00916.36
7.4.80.0120.00619.39
7.4.70.0070.01116.48
7.4.60.0160.00016.51
7.4.50.0100.00316.39
7.4.40.0030.01316.60
7.4.00.0030.00914.91
7.3.330.0000.00513.16
7.3.320.0030.00313.30
7.3.310.0000.00716.33
7.3.300.0030.00316.18
7.3.290.0030.00316.21
7.3.280.0110.00616.29
7.3.260.0110.00616.30
7.3.240.0110.00616.40
7.3.230.0090.00916.48
7.3.210.0060.00916.29
7.3.200.0120.00316.21
7.3.190.0090.00616.53
7.3.180.0080.00816.34
7.3.170.0130.01016.25
7.3.160.0150.00616.49
7.3.10.0040.00716.58
7.3.00.0080.00416.46
7.2.330.0130.00316.74
7.2.320.0160.00616.59
7.2.310.0030.01316.72
7.2.300.0100.01016.68
7.2.290.0100.00716.80
7.2.130.0110.00416.96
7.2.120.0240.00515.86
7.2.110.0150.00815.88
7.2.100.0110.00815.94
7.2.90.0220.00615.68
7.2.80.0160.00915.81
7.2.70.0180.01115.99
7.2.60.0220.00516.00
7.2.50.0250.00716.06
7.2.40.0220.00515.98
7.2.30.0290.00516.04
7.2.20.0240.01116.05
7.2.10.0250.00716.11
7.2.00.0230.00616.08
7.1.250.0070.00315.54
7.1.240.0270.01213.66
7.1.230.0170.00913.79
7.1.220.0250.01313.92
7.1.210.0450.00313.87
7.1.200.0400.00313.96
7.1.190.0390.01113.98
7.1.180.0360.00713.82
7.1.170.0460.00713.85
7.1.160.0210.00713.58
7.1.150.0420.01413.98
7.1.140.0320.01013.75
7.1.130.0340.01113.73
7.1.120.1360.00713.65
7.1.110.0320.00413.99
7.1.100.0410.00613.90
7.1.90.0280.00713.80
7.1.80.0350.00613.76
7.1.70.0340.00613.53
7.1.60.0420.01013.84
7.1.50.0370.01514.04
7.1.40.0480.00713.57
7.1.30.0330.00613.94
7.1.20.0320.00313.74
7.1.10.0250.01113.51
7.1.00.0320.00313.49
5.6.380.0100.00714.36

preferences:
43.3 ms | 400 KiB | 5 Q