3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A; class Test { public function __construct(){} public function testEchoName() { echo "self::class: ".self::class; echo "\n"; echo "get_class: ".get_class($this); echo "\n"; echo '__CLASS__: '.__CLASS__; echo "\n"; echo 'basename(__CLASS__): '.basename(__CLASS__); } } $test = new Test(); $test->testEchoName();

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.0000.01516.50
8.3.50.0030.01016.46
8.3.40.0030.01621.77
8.3.30.0080.00818.57
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0050.00326.16
8.2.180.0100.00525.92
8.2.170.0110.00420.64
8.2.160.0130.00622.96
8.2.150.0030.00625.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0080.00319.21
8.2.100.0050.00517.72
8.2.90.0060.00319.46
8.2.80.0040.00418.98
8.2.70.0050.00317.63
8.2.60.0000.00817.63
8.2.50.0040.00418.05
8.2.40.0050.00318.09
8.2.30.0040.00418.06
8.2.20.0070.00018.16
8.2.10.0000.00819.25
8.2.00.0000.00719.24
8.1.280.0000.01925.92
8.1.270.0040.00423.99
8.1.260.0080.00028.09
8.1.250.0030.00528.09
8.1.240.0060.00322.05
8.1.230.0030.00821.04
8.1.220.0000.00817.74
8.1.210.0030.00518.91
8.1.200.0060.00317.23
8.1.190.0030.00517.11
8.1.180.0050.00518.10
8.1.170.0080.00018.53
8.1.160.0000.00718.79
8.1.150.0030.00518.79
8.1.140.0050.00218.79
8.1.130.0030.00320.21
8.1.120.0040.00417.38
8.1.110.0030.00617.28
8.1.100.0050.00317.36
8.1.90.0000.00717.33
8.1.80.0080.00017.46
8.1.70.0000.00717.36
8.1.60.0050.00317.47
8.1.50.0050.00217.45
8.1.40.0080.00017.42
8.1.30.0000.00817.70
8.1.20.0050.00217.69
8.1.10.0030.00617.44
8.1.00.0000.00817.52
8.0.300.0040.00420.14
8.0.290.0080.00316.75
8.0.280.0000.00818.36
8.0.270.0040.00418.05
8.0.260.0060.00020.07
8.0.250.0000.00716.87
8.0.240.0040.00416.85
8.0.230.0000.00716.91
8.0.220.0030.00416.93
8.0.210.0000.00816.80
8.0.200.0040.00416.81
8.0.190.0000.00716.96
8.0.180.0030.00416.80
8.0.170.0000.00916.84
8.0.160.0040.00416.88
8.0.150.0080.00016.79
8.0.140.0070.00016.74
8.0.130.0000.00513.32
8.0.120.0040.00416.74
8.0.110.0000.00716.94
8.0.100.0050.00316.82
8.0.90.0080.00016.94
8.0.80.0090.00916.75
8.0.70.0040.00416.71
8.0.60.0000.00816.89
8.0.50.0070.00016.73
8.0.30.0090.01616.83
8.0.20.0130.01017.29
8.0.10.0000.00816.98
8.0.00.0060.02016.47
7.4.330.0000.00515.55
7.4.320.0000.00616.55
7.4.300.0000.00616.49
7.4.290.0000.00716.54
7.4.280.0050.00516.53
7.4.270.0030.00316.64
7.4.260.0030.00313.23
7.4.250.0030.00516.53
7.4.240.0040.00416.59
7.4.230.0000.00716.63
7.4.220.0040.00316.53
7.4.210.0070.00916.54
7.4.200.0040.00416.49
7.4.130.0130.00516.54
7.4.120.0140.00716.46
7.4.110.0140.00316.36
7.4.100.0070.01016.28
7.4.90.0140.00316.36
7.4.80.0110.00716.60
7.4.70.0130.00316.44
7.4.60.0100.00716.45
7.4.50.0130.00316.49
7.4.40.0130.00316.64
7.4.30.0110.00716.57
7.4.20.0100.01016.50
7.4.10.0110.00716.50
7.4.00.0060.01216.56
7.3.330.0070.00016.29
7.3.320.0000.00513.16
7.3.310.0070.00016.24
7.3.300.0070.00016.18
7.3.290.0090.00716.29
7.3.260.0060.01216.45
7.3.230.0140.00316.29
7.3.220.0070.01116.38
7.3.210.0090.00916.29
7.3.200.0060.01016.41
7.3.190.0130.00316.21
7.3.180.0100.00716.14
7.3.170.0130.00316.32
7.3.160.0090.00616.57
7.3.150.0170.00616.69
7.3.140.0090.00916.10
7.3.130.0090.00916.21
7.3.120.0060.01316.59
7.3.110.0090.00916.53
7.3.100.0130.00616.32
7.3.90.0030.01416.28
7.3.80.0110.00616.20
7.3.70.0120.00416.50
7.3.60.0040.01316.32
7.3.50.0190.00416.27
7.3.40.0120.00616.32
7.3.30.0130.00416.34
7.3.20.0130.00316.50
7.3.10.0120.00616.41
7.3.00.0030.01416.38
7.2.340.0070.01016.75
7.2.330.0090.00916.65
7.2.320.0060.01116.33
7.2.310.0130.00316.59
7.2.300.0030.01316.65
7.2.290.0130.00316.85
7.2.280.0110.01416.69
7.2.270.0090.00916.67
7.2.260.0060.01216.78
7.2.250.0090.00916.75
7.2.240.0090.01316.80
7.2.230.0110.01116.76
7.2.220.0060.01216.53
7.2.210.0100.00716.38
7.2.200.0160.00016.64
7.2.190.0030.01316.53
7.2.180.0090.01016.71
7.2.170.0120.00616.61
7.2.160.0030.01416.48
7.2.150.0030.01616.58
7.2.140.0090.00916.61
7.2.130.0150.00316.59
7.2.120.0140.00316.65
7.2.110.0060.01216.64
7.2.100.0070.01016.68
7.2.90.0120.00616.54
7.2.80.0060.01216.69
7.2.70.0090.00916.56
7.2.60.0030.01416.53
7.2.50.0120.00916.75
7.2.40.0070.01016.80
7.2.30.0040.01316.86
7.2.20.0190.00916.59
7.2.10.0130.00716.66
7.2.00.0160.00516.56

preferences:
29.69 ms | 400 KiB | 5 Q