3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass{} $testobj = new MyClass; $teststring = ''; $testinteger = 0; $testfloat = 0.0; $testarray = array(); $testresource = fopen("http://ya.ru", "r"); $testboolean = false; if(empty($testobj)) echo "TestObj is empty - ". gettype($testobj); else var_dump($testobj); if(empty($testnull)) echo 'TestNUll is empty - '. gettype($testnull); // if(empty($teststring)) echo 'TestString is empty - '.gettype($teststring); // if(empty($testinteger)) echo 'TestInteger is empty - '.gettype($testinteger); if(empty($testfloat)) echo 'TestFloat is empty - '.gettype($testfloat); if(empty($testarray)) echo 'Testfour is empty'.gettype($testarray); if(empty($testresource)) echo 'Testfour is empty'.gettype($testresource); else echo "Testfour's not empty"; var_dump($testresource); if(empty($testboolean)) echo 'TestFloat is empty - '.gettype($testboolean); ?>

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.0130.00718.75
8.3.50.0080.01022.17
8.3.40.0090.01219.23
8.3.30.0040.01818.87
8.3.20.0000.00819.51
8.3.10.0040.00422.28
8.3.00.0040.00421.32
8.2.180.0180.00417.00
8.2.170.0090.00622.96
8.2.160.0140.00719.46
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00426.16
8.2.120.0000.00921.36
8.2.110.0100.00319.50
8.2.100.0000.01119.90
8.2.90.0040.00419.38
8.2.80.0040.00417.97
8.2.70.0050.00317.75
8.2.60.0040.00418.16
8.2.50.0080.00018.10
8.2.40.0080.00020.76
8.2.30.0050.00219.41
8.2.20.0040.00418.00
8.2.10.0000.00718.23
8.2.00.0040.00418.30
8.1.280.0070.00725.92
8.1.270.0040.00424.09
8.1.260.0100.01026.35
8.1.250.0070.01128.09
8.1.240.0090.00021.62
8.1.230.0070.00417.97
8.1.220.0030.00517.90
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0000.00917.25
8.1.180.0050.00518.10
8.1.170.0030.00518.74
8.1.160.0000.00719.20
8.1.150.0070.00319.05
8.1.140.0000.00819.82
8.1.130.0030.00317.84
8.1.120.0050.00217.58
8.1.110.0040.00417.59
8.1.100.0000.00817.71
8.1.90.0000.00817.52
8.1.80.0000.00817.55
8.1.70.0030.00617.56
8.1.60.0050.00317.84
8.1.50.0040.00417.68
8.1.40.0000.00817.66
8.1.30.0040.00417.78
8.1.20.0000.00817.82
8.1.10.0030.00617.68
8.1.00.0040.00417.66
8.0.300.0000.00818.77
8.0.290.0080.00017.00
8.0.280.0000.00718.74
8.0.270.0030.00317.57
8.0.260.0000.00617.52
8.0.250.0000.00717.20
8.0.240.0040.00417.22
8.0.230.0040.00817.19
8.0.220.0000.00717.17
8.0.210.0030.00617.13
8.0.200.0030.00317.16
8.0.190.0050.00517.16
8.0.180.0040.00417.18
8.0.170.0000.00817.18
8.0.160.0040.00417.15
8.0.150.0000.00817.06
8.0.140.0040.00417.02
8.0.130.0000.00513.70
8.0.120.0000.00817.16
8.0.110.0050.00317.07
8.0.100.0000.00817.26
8.0.90.0040.00417.21
8.0.80.0030.01217.30
8.0.70.0040.00417.21
8.0.60.0000.00817.07
8.0.50.0040.00417.14
8.0.30.0100.01117.29
8.0.20.0130.00817.46
8.0.10.0040.00417.15
8.0.00.0120.00616.98
7.4.330.0000.00515.38
7.4.320.0050.00316.64
7.4.300.0000.00716.54
7.4.290.0040.00416.70
7.4.280.0040.00416.73
7.4.270.0000.00716.75
7.4.260.0030.00316.64
7.4.250.0050.00216.80
7.4.240.0070.00016.66
7.4.230.0040.00416.94
7.4.220.0100.01916.79
7.4.210.0110.00816.86
7.4.200.0000.00716.65
7.4.160.0100.00616.66
7.4.150.0120.00617.40
7.4.140.0120.01417.86
7.4.130.0110.01016.80
7.4.120.0120.01016.73
7.4.110.0140.00316.70
7.4.100.0060.01216.95
7.4.90.0070.01316.70
7.4.80.0060.01819.39
7.4.70.0060.01016.73
7.4.60.0130.00416.84
7.4.50.0090.00916.66
7.4.40.0090.00916.70
7.4.30.0040.01316.68
7.4.00.0120.00715.20
7.3.330.0060.00013.51
7.3.320.0030.00313.63
7.3.310.0000.00916.61
7.3.300.0030.00316.63
7.3.290.0090.00816.63
7.3.280.0100.01016.73
7.3.270.0110.00717.40
7.3.260.0140.01016.59
7.3.250.0080.01216.58
7.3.240.0110.01016.68
7.3.230.0130.00516.63
7.3.210.0060.01216.62
7.3.200.0130.00316.78
7.3.190.0120.00616.56
7.3.180.0090.00916.64
7.3.170.0030.01516.83
7.3.160.0120.00616.53
7.3.120.0100.01015.26
7.3.110.0070.01115.15
7.3.100.0070.00714.89
7.3.90.0030.00915.31
7.3.80.0040.01115.39
7.3.70.0000.01415.00
7.3.60.0060.00815.13
7.3.50.0090.00615.12
7.3.40.0040.01115.14
7.3.30.0060.00615.02
7.3.20.0030.00816.93
7.3.10.0060.01116.86
7.3.00.0090.00917.03
7.2.330.0120.00616.72
7.2.320.0100.00717.02
7.2.310.0090.01617.09
7.2.300.0090.01217.04
7.2.290.0090.00916.80
7.2.250.0140.00715.52
7.2.240.0070.01315.41
7.2.230.0070.01015.08
7.2.220.0090.00615.46
7.2.210.0030.01314.99
7.2.200.0080.00815.15
7.2.190.0070.01015.39
7.2.180.0070.00414.87
7.2.170.0000.01215.44
7.2.60.0000.01317.16
7.2.00.0030.01019.79
7.1.330.0030.01216.13
7.1.320.0110.00316.02
7.1.310.0000.01516.20
7.1.300.0060.00915.75
7.1.290.0070.01016.13
7.1.280.0060.00615.87
7.1.270.0030.01015.89
7.1.260.0140.00316.04
7.1.200.0070.00716.16
7.1.100.0040.00818.22
7.1.70.0040.00417.55
7.1.60.0130.01019.47
7.1.50.0030.01717.34
7.1.00.0000.08022.67
7.0.200.0310.00814.97
7.0.70.1500.05020.32
7.0.60.1170.06020.24
7.0.50.1200.05720.64
7.0.40.1500.06020.70
7.0.30.1170.05720.77
7.0.20.1370.07020.79
7.0.10.1430.05320.77
7.0.00.1200.06720.78
5.6.280.0030.07321.26
5.6.220.0970.05021.06
5.6.210.1500.06721.04
5.6.200.1000.06021.47
5.6.190.1330.05021.54
5.6.180.1000.06021.43
5.6.170.0970.07321.48
5.6.160.0970.06021.59
5.6.150.1030.05321.46
5.6.140.0970.06021.45
5.6.130.1100.06721.55
5.6.120.0070.06321.31
5.6.110.0700.05021.41
5.6.100.1330.05021.43
5.6.90.1200.07021.48
5.6.80.1000.06020.89
5.6.70.1200.06020.88
5.6.60.1170.06020.91
5.6.50.1230.05320.98
5.6.40.1330.04020.79
5.6.30.1230.05320.73
5.6.20.1170.05320.89
5.6.10.0970.06020.87
5.6.00.1130.07320.85
5.5.360.0900.06320.70
5.5.350.1170.06020.76
5.5.340.1170.05721.23
5.5.330.1230.06021.35
5.5.320.0930.06321.12
5.5.310.1030.05321.20
5.5.300.0900.06321.20
5.5.290.1000.06321.21
5.5.280.0030.06721.27
5.5.270.1500.06321.24
5.5.260.1270.06021.09
5.5.250.1030.05721.14
5.5.240.1230.06020.61
5.5.230.1070.06020.74
5.5.220.1130.06020.77
5.5.210.1130.05020.66
5.5.200.0970.05720.58
5.5.190.1330.04720.70
5.5.180.1070.06720.47
5.5.160.0970.06320.70
5.5.150.1300.05720.61
5.5.140.1030.05320.74
5.5.130.1230.05020.46
5.5.120.1270.05020.41
5.5.110.1270.05320.57
5.5.100.1500.05720.50
5.5.90.1300.05020.41
5.5.80.1170.06020.55
5.5.70.1130.08020.43
5.5.60.1300.05020.51
5.5.50.1170.06320.48
5.5.40.1170.07720.60
5.5.30.1300.04720.58
5.5.20.1100.07020.51
5.5.10.0930.06320.40
5.5.00.1230.05320.37

preferences:
64.36 ms | 401 KiB | 5 Q