3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface EventInterface { const NAME = 'event.name'; public function getName(); } class NiceEvent implements EventInterface { const NAME = 'nice.event'; public function getName() { return self::NAME; } } $o = new NiceEvent; echo $o->getName();

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.0070.01518.30
8.3.50.0100.00319.80
8.3.40.0100.01018.54
8.3.30.0070.00718.59
8.3.20.0040.00421.60
8.3.10.0080.00021.69
8.3.00.0050.00221.98
8.2.180.0040.01518.11
8.2.170.0140.00722.96
8.2.160.0070.00722.04
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0050.00317.78
8.2.120.0070.00026.35
8.2.110.0030.00622.13
8.2.100.0110.00417.72
8.2.90.0040.00419.13
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0000.00818.04
8.2.50.0060.00318.10
8.2.40.0040.00420.48
8.2.30.0020.00519.13
8.2.20.0000.00718.12
8.2.10.0040.00418.09
8.2.00.0060.00317.63
8.1.280.0100.00725.92
8.1.270.0070.00022.02
8.1.260.0000.00726.35
8.1.250.0030.00628.09
8.1.240.0060.00323.91
8.1.230.0040.00717.76
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0080.00017.35
8.1.190.0040.00417.00
8.1.180.0000.00818.10
8.1.170.0040.00418.38
8.1.160.0070.00018.76
8.1.150.0000.00720.31
8.1.140.0030.00619.54
8.1.130.0070.00018.89
8.1.120.0040.00417.36
8.1.110.0040.00417.45
8.1.100.0000.00717.33
8.1.90.0050.00317.36
8.1.80.0000.00717.41
8.1.70.0030.00317.45
8.1.60.0000.00717.61
8.1.50.0000.00817.53
8.1.40.0070.00017.41
8.1.30.0040.00417.55
8.1.20.0040.00417.55
8.1.10.0050.00317.45
8.1.00.0050.00317.38
8.0.300.0000.00718.77
8.0.290.0050.00316.75
8.0.280.0040.00418.26
8.0.270.0040.00417.20
8.0.260.0060.00017.21
8.0.250.0040.00416.95
8.0.240.0000.00716.83
8.0.230.0030.00316.97
8.0.220.0000.00816.82
8.0.210.0070.00016.83
8.0.200.0030.00316.96
8.0.190.0000.00716.93
8.0.180.0030.00316.81
8.0.170.0070.00016.80
8.0.160.0070.00016.89
8.0.150.0050.00216.82
8.0.140.0040.00416.76
8.0.130.0000.00513.33
8.0.120.0050.00316.87
8.0.110.0030.00316.95
8.0.100.0050.00316.75
8.0.90.0040.00416.87
8.0.80.0070.00716.85
8.0.70.0000.00816.76
8.0.60.0000.00716.88
8.0.50.0040.00416.76
8.0.30.0080.01017.20
8.0.20.0140.00517.40
8.0.10.0040.00416.94
8.0.00.0040.01416.68
7.4.330.0000.00515.55
7.4.320.0000.00616.43
7.4.300.0060.00016.44
7.4.290.0040.00416.57
7.4.280.0050.00316.54
7.4.270.0070.00016.39
7.4.260.0070.00016.29
7.4.250.0040.00416.50
7.4.240.0000.00616.57
7.4.230.0050.00216.45
7.4.220.0030.01916.62
7.4.210.0090.00616.54
7.4.200.0000.00716.65
7.4.160.0080.00816.38
7.4.150.0170.00317.40
7.4.140.0090.00917.86
7.4.130.0090.00816.51
7.4.120.0080.01216.48
7.4.110.0110.00816.54
7.4.100.0120.00616.64
7.4.90.0090.00916.39
7.4.80.0090.00619.39
7.4.70.0080.00816.52
7.4.60.0100.00616.55
7.4.50.0070.01016.41
7.4.40.0090.00916.44
7.4.30.0100.00716.37
7.4.00.0060.00914.84
7.3.330.0070.00013.21
7.3.320.0050.00013.31
7.3.310.0040.00416.34
7.3.300.0000.00716.27
7.3.290.0070.00016.16
7.3.280.0070.01016.24
7.3.270.0070.01117.40
7.3.260.0060.01116.38
7.3.250.0100.01016.36
7.3.240.0080.00916.34
7.3.230.0090.00616.31
7.3.210.0100.01016.28
7.3.200.0110.00716.55
7.3.190.0100.00716.32
7.3.180.0120.00316.45
7.3.170.0050.01116.32
7.3.160.0070.01016.14
7.3.10.0040.00716.52
7.3.00.0000.00916.65
7.2.330.0040.01416.66
7.2.320.0130.00316.38
7.2.310.0120.00516.67
7.2.300.0070.01116.32
7.2.290.0100.00716.66
7.2.130.0030.00616.74
7.2.120.0000.00916.91
7.2.110.0080.00616.94
7.2.100.0060.00616.58
7.2.90.0030.01016.90
7.2.80.0070.00416.88
7.2.70.0070.00316.63
7.2.60.0120.00216.75
7.2.50.0080.00316.72
7.2.40.0030.00916.84
7.2.30.0060.00616.68
7.2.20.0000.01016.78
7.2.10.0080.00416.88
7.2.00.0070.00618.04
7.1.250.0080.00415.35
7.1.200.0040.00815.58
7.1.70.0030.00717.05
7.1.60.0200.00717.09
7.1.50.0060.01516.73
7.1.10.0170.05322.20
7.1.00.0070.06022.41
7.0.200.0070.01116.73
7.0.150.0000.06321.85
7.0.140.0030.06021.95
7.0.130.0130.05021.90
7.0.120.0070.05721.96
7.0.110.0070.06022.05
7.0.100.0100.05321.83
7.0.90.0100.05721.89
7.0.80.0070.07321.89
7.0.70.0100.06021.90
7.0.60.0070.06721.81
7.0.50.0170.05021.98
7.0.40.0230.05020.11
7.0.30.0130.05021.75
7.0.20.0070.06021.82
7.0.10.0200.04721.91
7.0.00.0070.05721.91

preferences:
66.31 ms | 401 KiB | 5 Q