3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Car { public static function run() { return static::getName(); } private static function getName() { return 'Car'; } } class Toyota extends Car { public static function getName() { return 'Toyota'; } } echo Car::run(); // Output: Car echo '<br>'; echo Toyota::run(); // Output: Toyota ?>

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.0110.00718.30
8.3.50.0090.00618.08
8.3.40.0060.01018.83
8.3.30.0060.00918.89
8.3.20.0060.00319.21
8.3.10.0050.00221.90
8.3.00.0000.00720.67
8.2.180.0100.01017.81
8.2.170.0110.00422.96
8.2.160.0110.00420.65
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00019.70
8.2.120.0040.00426.35
8.2.110.0120.00921.05
8.2.100.0060.00619.51
8.2.90.0060.00317.50
8.2.80.0000.00817.97
8.2.70.0040.00417.80
8.2.60.0000.00718.16
8.2.50.0040.00418.10
8.2.40.0000.00719.28
8.2.30.0040.00419.27
8.2.20.0000.00817.88
8.2.10.0040.00417.93
8.2.00.0000.00817.48
8.1.280.0060.00925.92
8.1.270.0070.00018.82
8.1.260.0140.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00620.59
8.1.230.0040.00717.70
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.10
8.1.190.0030.00617.00
8.1.180.0040.00418.10
8.1.170.0040.00418.38
8.1.160.0030.00618.71
8.1.150.0070.00018.75
8.1.140.0050.00222.04
8.1.130.0070.00020.11
8.1.120.0040.00417.23
8.1.110.0000.00717.21
8.1.100.0030.00317.33
8.1.90.0040.00417.30
8.1.80.0040.00417.25
8.1.70.0030.00617.34
8.1.60.0030.00517.51
8.1.50.0030.00517.41
8.1.40.0070.00017.42
8.1.30.0050.00317.56
8.1.20.0030.00617.59
8.1.10.0100.00017.52
8.1.00.0040.00417.47
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00718.43
8.0.270.0040.00417.32
8.0.260.0040.00418.50
8.0.250.0000.00716.92
8.0.240.0070.00016.86
8.0.230.0040.00416.88
8.0.220.0050.00216.86
8.0.210.0030.00316.89
8.0.200.0000.00616.89
8.0.190.0040.00416.78
8.0.180.0000.00816.88
8.0.170.0030.00616.87
8.0.160.0040.00416.85
8.0.150.0040.00416.81
8.0.140.0000.00816.84
8.0.130.0050.00013.23
8.0.120.0030.00516.68
8.0.110.0040.00416.79
8.0.100.0050.00216.72
8.0.90.0040.00416.55
8.0.80.0060.00816.74
8.0.70.0030.00616.64
8.0.60.0050.00316.70
8.0.50.0000.00816.65
8.0.30.0110.00616.93
8.0.20.0170.00317.40
8.0.10.0040.00416.79
8.0.00.0110.01016.69
7.4.330.0040.00015.55
7.4.320.0060.00016.52
7.4.300.0000.00816.60
7.4.290.0030.00316.43
7.4.280.0000.00916.38
7.4.270.0030.00316.51
7.4.260.0000.00716.54
7.4.250.0040.00416.57
7.4.240.0040.00416.61
7.4.230.0000.00716.40
7.4.220.0050.00316.48
7.4.210.0070.01016.41
7.4.200.0030.00316.46
7.4.160.0110.00616.47
7.4.140.0120.00717.86
7.4.130.0140.01016.45
7.4.120.0110.00716.50
7.4.110.0140.00416.37
7.4.100.0130.00316.50
7.4.90.0170.00416.50
7.4.80.0040.01419.39
7.4.70.0080.00816.50
7.4.60.0030.01216.38
7.4.50.0090.00916.60
7.4.40.0090.01016.46
7.3.330.0060.00013.05
7.3.320.0030.00313.16
7.3.310.0030.00516.24
7.3.300.0040.00416.18
7.3.290.0030.00316.14
7.3.280.0100.00616.21
7.3.260.0130.00816.33
7.3.240.0080.01116.49
7.3.230.0100.00816.20
7.3.210.0130.00616.54
7.3.200.0090.00916.18
7.3.190.0130.00316.40
7.3.180.0040.01816.34
7.3.170.0070.01416.24
7.3.160.0030.01416.22
7.2.330.0060.01416.57
7.2.320.0090.01216.39
7.2.310.0130.00316.46
7.2.300.0160.00016.70
7.2.290.0130.00316.32

preferences:
76.8 ms | 401 KiB | 5 Q