3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Model { public static function sayHello() { echo 'hello'; } } $className = "Model"; if (class_exists($className)) { $className::sayHello(); }

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.5.70.0080.00616.64
8.5.60.0090.00916.74
8.5.50.0090.00916.58
8.5.30.0080.01017.74
8.5.20.0130.00519.50
8.5.10.0120.00716.84
8.5.00.0160.01019.78
8.4.210.0110.01019.53
8.4.180.0110.01023.73
8.4.170.0090.01319.57
8.4.160.0140.00823.88
8.4.150.0070.00616.81
8.4.140.0120.01017.46
8.4.130.0090.00317.95
8.4.120.0070.00620.73
8.4.110.0130.00622.26
8.4.100.0100.01117.60
8.4.90.0060.00424.23
8.4.80.0110.00918.91
8.4.70.0120.00822.58
8.4.60.0080.01220.64
8.4.50.0110.01018.54
8.4.40.0060.00317.73
8.4.30.0090.01220.37
8.4.20.0100.01019.63
8.4.10.0030.00617.68
8.3.300.0140.00720.16
8.3.290.0100.01020.70
8.3.280.0120.00818.37
8.3.270.0110.00816.46
8.3.260.0120.00716.54
8.3.250.0090.01018.62
8.3.240.0110.00718.78
8.3.230.0120.00616.42
8.3.220.0050.00319.00
8.3.210.0030.00416.68
8.3.200.0070.00216.37
8.3.190.0110.00617.22
8.3.180.0050.00418.82
8.3.170.0090.00918.79
8.3.160.0060.01218.39
8.3.150.0030.00618.96
8.3.140.0080.00021.00
8.3.130.0140.00016.48
8.3.120.0080.01118.75
8.3.110.0070.00716.53
8.3.100.0070.00324.06
8.3.90.0070.00426.77
8.3.80.0090.00016.50
8.3.70.0070.01018.30
8.3.60.0090.00616.63
8.3.50.0140.00318.17
8.3.40.0070.00720.27
8.3.30.0030.01218.72
8.3.20.0050.00324.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.300.0120.00722.30
8.2.290.0120.00718.75
8.2.280.0100.00918.16
8.2.270.0090.00916.76
8.2.260.0140.00317.21
8.2.250.0120.00916.58
8.2.240.0080.00017.08
8.2.230.0030.00620.94
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0080.00416.75
8.2.190.0110.00316.75
8.2.180.0090.01225.92
8.2.170.0210.00018.96
8.2.160.0060.00922.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00026.16
8.2.110.0060.00322.08
8.2.100.0060.00617.85
8.2.90.0080.00018.16
8.2.80.0070.00017.97
8.2.70.0030.00717.50
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0000.00718.05
8.2.30.0040.00417.52
8.2.20.0040.00418.07
8.2.10.0040.00418.83
8.2.00.0070.00019.12
8.1.340.0050.00517.68
8.1.330.0080.01118.30
8.1.320.0110.00916.24
8.1.310.0000.00818.62
8.1.300.0060.00318.14
8.1.290.0140.00718.88
8.1.280.0110.00725.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0120.00017.36
8.1.230.0090.00320.92
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0030.00617.38
8.1.180.0000.00818.10
8.1.170.0090.00018.76
8.1.160.0030.00418.81
8.1.150.0040.00418.45
8.1.140.0050.00217.37
8.1.130.0000.00817.32
8.1.120.0030.00317.36
8.1.110.0040.00417.40
8.1.100.0000.00717.27
8.1.90.0040.00417.42
8.1.80.0000.00817.35
8.1.70.0050.00217.34
8.1.60.0040.00417.58
8.1.50.0040.00417.45
8.1.40.0030.00617.56
8.1.30.0000.00817.56
8.1.20.0000.00717.54
8.1.10.0030.00617.62
8.1.00.0000.00817.58
8.0.300.0050.00220.09
8.0.290.0040.00417.16
8.0.280.0070.00018.45
8.0.270.0000.00716.70
8.0.260.0050.00516.88
8.0.250.0000.00816.87
8.0.240.0080.00016.94
8.0.230.0030.00316.84
8.0.220.0030.00316.86
8.0.210.0050.00316.82
8.0.200.0020.00516.80
8.0.190.0040.00416.80
8.0.180.0070.00016.75
8.0.170.0000.00916.90
8.0.160.0040.00416.87
8.0.150.0040.00416.73
8.0.140.0040.00416.76
8.0.130.0030.00313.30
8.0.120.0000.00716.70
8.0.110.0040.00416.72
8.0.100.0030.00416.79
8.0.90.0030.00416.81
8.0.80.0040.00416.80
8.0.70.0020.00516.65
8.0.60.0050.00216.71
8.0.50.0040.00416.83
8.0.30.0070.00116.75
8.0.20.0000.00716.84
8.0.10.0040.00316.96
8.0.00.0020.00616.93
7.4.330.0000.00415.55
7.4.320.0030.00316.51
7.4.300.0100.00016.69
7.4.290.0000.00616.52
7.4.280.0000.00716.60
7.4.270.0000.00716.64
7.4.260.0000.00613.39
7.4.250.0030.00316.42
7.4.240.0020.00516.60
7.4.230.0050.00316.64
7.4.220.0070.00016.33
7.4.210.0040.00416.60
7.4.200.0020.00516.34
7.4.190.0030.00416.67
7.4.180.0020.00516.65
7.4.160.0070.00016.56
7.4.150.0020.00616.49
7.4.140.0050.00216.22
7.4.130.0050.00216.38
7.4.120.0030.00516.46
7.4.110.0000.00716.38
7.4.100.0050.00216.41
7.4.90.0000.00716.60
7.4.80.0040.00316.55
7.4.70.0000.00716.54
7.4.60.0030.00316.46
7.4.50.0050.00216.49
7.4.40.0040.00416.39
7.4.30.0000.00716.56
7.4.20.0000.00716.49
7.4.10.0040.00416.29
7.4.00.0030.00316.58
7.3.330.0030.00316.16
7.3.320.0030.00313.07
7.3.310.0000.00716.32
7.3.300.0020.00516.30
7.3.290.0030.00316.31
7.3.280.0020.00516.21
7.3.270.0030.00416.28
7.3.260.0060.00216.30
7.3.250.0060.00216.26
7.3.240.0020.00516.19
7.3.230.0020.00516.28
7.3.220.0020.00516.17
7.3.210.0050.00216.21
7.3.200.0030.00316.19
7.3.190.0000.00716.17
7.3.180.0000.00716.24
7.3.170.0020.00516.23
7.3.160.0020.00516.19
7.3.150.0020.00516.18
7.3.140.0030.00316.27
7.3.130.0020.00516.15
7.3.120.0030.00316.17
7.3.110.0030.00416.16
7.3.100.0030.00316.06
7.3.90.0030.00316.41
7.3.80.0060.00016.20
7.3.70.0050.00216.38
7.3.60.0040.00416.41
7.3.50.0010.00716.40
7.3.40.0020.00516.41
7.3.30.0030.00316.41
7.3.20.0000.00718.11
7.3.10.0040.00418.12
7.3.00.0030.00318.10

preferences:
111.23 ms | 1383 KiB | 5 Q