3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Define a class...\n"; class ThisIsAContainer { public static function thisIsAMethod(){ echo "This method does something."; } } echo "Grab the method...\n"; $function = ThisIsAContainer::thisIsAMethod(...); echo "Run it:\n"; $function();

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.4.140.0160.00517.61
8.4.130.0100.01018.59
8.4.120.0100.00924.09
8.4.110.0090.01122.54
8.4.100.0110.00817.86
8.4.90.0040.00518.80
8.4.80.0080.00017.79
8.4.70.0050.00317.88
8.4.60.0150.00618.79
8.4.50.0110.00918.69
8.4.40.0130.00617.70
8.4.30.0130.00720.14
8.4.20.0120.00417.66
8.4.10.0100.00017.65
8.3.270.0080.01216.73
8.3.260.0100.00916.41
8.3.250.0130.00518.57
8.3.240.0090.00517.04
8.3.230.0080.01016.61
8.3.220.0110.00617.20
8.3.210.0050.00216.44
8.3.200.0070.00216.73
8.3.190.0090.00617.04
8.3.180.0110.00718.96
8.3.170.0100.01016.70
8.3.160.0070.01117.06
8.3.150.0090.00917.04
8.3.140.0080.00018.90
8.3.130.0030.00618.60
8.3.120.0030.00620.83
8.3.110.0040.00422.58
8.3.100.0000.00922.58
8.3.90.0110.00822.58
8.3.50.0060.00322.58
8.2.290.0110.00720.32
8.2.280.0120.00920.07
8.2.270.0110.00717.29
8.2.260.0090.00916.46
8.2.250.0070.01116.92
8.2.240.0040.00418.71
8.2.230.0040.00422.58
8.2.220.0030.00622.58
8.2.210.0050.00322.58
8.1.330.0120.00723.68
8.1.320.0130.00516.21
8.1.310.0070.00316.23
8.1.300.0000.00819.71
8.1.70.0050.00517.27
8.1.60.0100.00317.44
8.1.50.0000.00817.51
8.1.40.0050.00317.54
8.1.30.0130.00217.59
8.1.20.0120.00417.60
8.1.10.0150.00317.54
8.1.00.0120.00617.45
8.0.200.0000.00616.89
8.0.190.0040.00416.86
8.0.180.0070.00316.90
8.0.170.0070.00316.86
8.0.160.0030.00616.84
8.0.150.0090.00616.72
8.0.140.0100.00616.71
8.0.130.0100.00616.73
8.0.120.0090.00516.80
8.0.110.0100.00516.86
8.0.100.0110.00616.77
8.0.90.0120.00516.82
8.0.80.0040.01316.82
8.0.70.0120.00616.75
8.0.60.0170.00116.84
8.0.50.0180.00216.84
8.0.30.0120.00416.78
8.0.20.0080.00916.80
8.0.10.0140.00316.93
7.4.300.0030.00316.36
7.4.290.0100.00416.27
7.4.280.0120.00516.43
7.4.270.0080.00516.37
7.4.260.0170.00416.28
7.4.250.0150.00316.35
7.4.240.0150.00516.37
7.4.230.0140.00616.35
7.4.220.0160.00116.33
7.4.210.0160.00116.35
7.4.200.0110.00516.40
7.4.190.0090.00616.32
7.4.180.0110.00616.31
7.4.160.0110.00516.39
7.4.150.0120.00416.35
7.4.140.0150.00316.25
7.4.130.0130.00516.14
7.4.120.0110.00616.30
7.4.110.0140.00316.11
7.4.100.0090.00916.34
7.4.90.0150.00316.16
7.4.80.0130.00416.29
7.4.70.0120.00316.13
7.4.60.0100.00516.22
7.4.50.0110.00416.06
7.4.40.0110.00416.13
7.4.30.0080.00616.21
7.4.20.0130.00216.18
7.4.10.0090.00416.18
7.4.00.0090.00416.30

preferences:
32.52 ms | 403 KiB | 5 Q