3v4l.org

run code in 300+ PHP versions simultaneously
<?php // provides no output namespace testa; class testClass1 { public function __construct (){ echo "hello1\n"; } } class testClass2 { public function testClass2 (){ echo "hello2\n"; } } $test1 = new \testa\testClass1(); $test2 = new \testa\testClass2(); ?>

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.0080.00818.29
8.3.50.0140.00016.36
8.3.40.0120.00318.68
8.3.30.0150.00018.26
8.3.20.0000.00721.80
8.3.10.0050.00321.68
8.3.00.0040.00417.78
8.2.180.0090.01218.54
8.2.170.0120.00622.96
8.2.160.0070.00721.02
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0080.00022.26
8.2.120.0040.00426.35
8.2.110.0040.00421.94
8.2.100.0090.00317.91
8.2.90.0070.00319.25
8.2.80.0080.00017.97
8.2.70.0090.00017.50
8.2.60.0040.00417.93
8.2.50.0040.00419.45
8.2.40.0070.00020.59
8.2.30.0040.00420.38
8.2.20.0060.00318.00
8.2.10.0000.00717.98
8.2.00.0000.00717.99
8.1.280.0090.00625.92
8.1.270.0040.00423.71
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00622.24
8.1.230.0080.00319.07
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.36
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0000.00818.51
8.1.160.0000.00718.90
8.1.150.0000.00720.14
8.1.140.0040.00419.57
8.1.130.0030.00618.83
8.1.120.0030.00417.36
8.1.110.0000.00817.23
8.1.100.0040.00417.46
8.1.90.0040.00417.41
8.1.80.0040.00417.43
8.1.70.0000.00817.43
8.1.60.0050.00217.42
8.1.50.0050.00317.53
8.1.40.0000.00817.46
8.1.30.0000.00717.57
8.1.20.0030.00517.61
8.1.10.0030.00617.60
8.1.00.0070.00017.50
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00818.37
8.0.270.0070.00017.21
8.0.260.0000.00716.75
8.0.250.0030.00316.81
8.0.240.0030.00616.83
8.0.230.0070.00016.93
8.0.220.0030.00316.76
8.0.210.0050.00216.84
8.0.200.0000.00616.73
8.0.190.0030.00616.89
8.0.180.0030.00316.89
8.0.170.0040.00416.75
8.0.160.0000.00716.82
8.0.150.0000.00716.66
8.0.140.0070.00016.84
8.0.130.0040.00413.23
8.0.120.0000.00716.75
8.0.110.0030.00316.69
8.0.100.0050.00316.70
8.0.90.0000.00716.70
8.0.80.0000.01716.80
8.0.70.0030.00516.77
8.0.60.0030.00516.71
8.0.50.0000.00716.70
8.0.30.0120.00817.07
8.0.20.0090.01017.40
8.0.10.0050.00216.95
8.0.00.0140.00316.66
7.4.330.0020.00215.55
7.4.320.0040.00416.50
7.4.300.0000.00716.56
7.4.290.0040.00416.53
7.4.280.0040.00416.55
7.4.270.0000.00716.52
7.4.260.0040.00416.48
7.4.250.0060.00316.54
7.4.240.0030.00316.49
7.4.230.0030.00316.44
7.4.220.0130.00716.52
7.4.210.0100.01016.54
7.4.200.0000.00716.30
7.4.160.0150.00416.36
7.4.150.0060.01217.40
7.4.140.0100.01017.86
7.4.130.0120.01216.57
7.4.120.0040.01316.49
7.4.110.0000.01716.41
7.4.100.0150.00316.32
7.4.90.0100.00716.55
7.4.80.0130.00419.39
7.4.70.0080.00816.29
7.4.60.0100.00616.48
7.4.50.0060.00916.41
7.4.40.0070.01016.38
7.4.30.0040.01216.55
7.4.00.0060.00915.21
7.3.330.0000.00513.11
7.3.320.0000.00513.02
7.3.310.0020.00516.28
7.3.300.0040.00416.25
7.3.290.0050.01116.22
7.3.280.0080.00916.22
7.3.270.0170.01417.40
7.3.260.0050.01216.38
7.3.250.0050.01316.36
7.3.240.0060.01116.22
7.3.230.0030.01516.46
7.3.210.0150.00916.21
7.3.200.0100.01116.16
7.3.190.0060.01216.20
7.3.180.0060.01216.42
7.3.170.0060.00916.26
7.3.160.0100.00716.28
7.3.10.0150.00416.57
7.3.00.0400.00716.53
7.2.330.0090.00916.35
7.2.320.0030.01816.72
7.2.310.0140.00916.61
7.2.300.0070.01016.36
7.2.290.0120.00816.34
7.2.130.0110.00316.87
7.2.120.0120.00316.72
7.2.110.0220.00916.32
7.2.100.0190.00617.01
7.2.90.0210.00716.86
7.2.80.0240.00716.73
7.2.70.0120.00916.43
7.2.60.0050.01216.70
7.2.50.0180.00516.77
7.2.40.0070.00716.91
7.2.30.0060.01216.62
7.2.20.0000.02016.53
7.2.10.0100.00716.70
7.2.00.0030.01216.75
7.1.250.0140.00715.16
7.1.200.0030.01015.60
7.1.70.0030.00317.18
7.1.60.0970.01033.10
7.1.50.0830.01332.59
7.1.40.0830.00732.63
7.1.30.0800.01732.48
7.1.20.0800.01032.49
7.1.10.0570.01314.47
7.1.00.0670.01014.57
7.0.200.0730.01314.82
7.0.190.0830.00014.76
7.0.180.0630.01014.25
7.0.170.0670.01314.22
7.0.160.0730.00714.23
7.0.150.0600.00714.44
7.0.140.0630.00714.39
7.0.130.0530.01014.71
7.0.120.0600.00714.42
7.0.110.0470.01314.30
7.0.100.0570.01014.51
7.0.90.0670.00714.30
7.0.80.0930.00714.47
7.0.70.1470.00314.41
7.0.60.0530.01014.32
7.0.50.0570.01014.29
7.0.40.0800.01314.58
7.0.30.0600.00714.45
7.0.20.0600.00314.23
7.0.10.0500.01314.61
7.0.00.0530.00714.48

preferences:
58.49 ms | 401 KiB | 5 Q