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 'TestArray is empty'.gettype($testarray); if(empty($testresource)) echo 'TestResource is empty'.gettype($testresource); else echo "TestResource is 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.68
8.3.50.0100.00718.07
8.3.40.0110.00418.88
8.3.30.0140.00718.97
8.3.20.0080.00019.45
8.3.10.0040.00422.13
8.3.00.0040.00421.21
8.2.180.0170.00316.88
8.2.170.0060.00922.96
8.2.160.0150.00019.40
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0050.00220.64
8.2.120.0040.00426.35
8.2.110.0040.00819.63
8.2.100.0090.00319.78
8.2.90.0040.00419.30
8.2.80.0040.00417.97
8.2.70.0040.00417.59
8.2.60.0040.00418.16
8.2.50.0000.00818.10
8.2.40.0000.00820.80
8.2.30.0050.00319.51
8.2.20.0040.00417.99
8.2.10.0000.00818.25
8.2.00.0000.00818.29
8.1.280.0090.00625.92
8.1.270.0060.00324.14
8.1.260.0050.00328.09
8.1.250.0080.00028.09
8.1.240.0030.00721.37
8.1.230.0040.00817.85
8.1.220.0060.00317.92
8.1.210.0080.00018.77
8.1.200.0060.00317.48
8.1.190.0080.00017.35
8.1.180.0050.00318.10
8.1.170.0040.00418.73
8.1.160.0040.00419.21
8.1.150.0090.00319.15
8.1.140.0070.00019.76
8.1.130.0070.00017.91
8.1.120.0040.00417.61
8.1.110.0040.00417.56
8.1.100.0000.00717.61
8.1.90.0080.00017.52
8.1.80.0040.00417.59
8.1.70.0100.00017.57
8.1.60.0030.00517.68
8.1.50.0080.00017.57
8.1.40.0000.00817.62
8.1.30.0040.00417.90
8.1.20.0050.00317.82
8.1.10.0040.00417.68
8.1.00.0040.00417.59
8.0.300.0080.00018.77
8.0.290.0080.00017.00
8.0.280.0030.00618.81
8.0.270.0070.00017.52
8.0.260.0050.00317.50
8.0.250.0000.00717.17
8.0.240.0040.00417.20
8.0.230.0000.00917.18
8.0.220.0000.00717.16
8.0.210.0040.00417.14
8.0.200.0000.00717.29
8.0.190.0080.00317.16
8.0.180.0030.00517.13
8.0.170.0040.00417.16
8.0.160.0040.00417.12
8.0.150.0040.00416.98
8.0.140.0000.00717.01
8.0.130.0030.00313.64
8.0.120.0030.00517.19
8.0.110.0060.00317.38
8.0.100.0000.00817.14
8.0.90.0030.00517.21
8.0.80.0060.00917.23
8.0.70.0030.00617.14
8.0.60.0000.00917.32
8.0.50.0040.00417.35
8.0.30.0070.01017.41
8.0.20.0110.00917.47
8.0.10.0000.00817.33
8.0.00.0180.00016.97
7.4.330.0020.00215.43
7.4.320.0050.00516.67
7.4.300.0030.00316.71
7.4.290.0060.00316.68
7.4.280.0040.00416.61
7.4.270.0070.00016.73
7.4.260.0030.00716.64
7.4.250.0050.00216.90
7.4.240.0040.00416.68
7.4.230.0020.00516.64
7.4.220.0160.00316.86
7.4.210.0150.00316.87
7.4.200.0030.00516.90
7.4.160.0110.00716.61
7.4.150.0120.00817.40
7.4.140.0060.01417.86
7.4.130.0130.00716.79
7.4.120.0050.01616.87
7.4.110.0120.00916.72
7.4.100.0100.00716.89
7.4.90.0060.01216.88
7.4.80.0090.00919.39
7.4.70.0060.01116.66
7.4.60.0150.00316.75
7.4.50.0090.00616.79
7.4.40.0090.00916.79
7.4.30.0150.00916.92
7.4.00.0030.01015.45
7.3.330.0000.00713.63
7.3.320.0060.00013.61
7.3.310.0070.00316.74
7.3.300.0000.00716.67
7.3.290.0100.00716.65
7.3.280.0120.00816.62
7.3.270.0090.00917.40
7.3.260.0100.01216.76
7.3.250.0120.00816.69
7.3.240.0130.00816.64
7.3.230.0070.01416.56
7.3.210.0150.00316.65
7.3.200.0130.01016.61
7.3.190.0130.00316.82
7.3.180.0060.01216.82
7.3.170.0170.00016.71
7.3.160.0100.00716.55
7.2.330.0190.00016.84
7.2.320.0040.01316.79
7.2.310.0100.00916.89
7.2.300.0110.00616.63
7.2.290.0090.00916.98
7.2.60.0100.00716.91
7.2.00.0030.01319.54
7.1.200.0090.00516.07
7.1.100.0100.00718.16
7.1.70.0050.00517.46
7.1.60.0060.01919.47
7.1.50.0130.01016.91
7.1.00.0070.07022.59
7.0.200.0210.00514.77
7.0.70.1670.08020.38
7.0.60.1530.06020.31
7.0.50.1770.05020.58
7.0.40.1270.07020.57
7.0.30.1870.07020.55
7.0.20.1670.06020.70
7.0.10.1470.08720.79
7.0.00.0970.07020.79
5.6.280.0030.07321.49
5.6.220.1430.07020.84
5.6.210.1300.06720.79
5.6.200.1070.06021.42
5.6.190.1270.08021.54
5.6.180.1370.07021.41
5.6.170.1230.04721.59
5.6.160.1230.04321.49
5.6.150.1330.06721.29
5.6.140.1170.05021.36
5.6.130.1670.09021.45
5.6.120.1370.06721.46
5.6.110.1430.07021.47
5.6.100.1170.06021.46
5.6.90.1300.06721.42
5.6.80.1370.07320.89
5.6.70.1170.04720.82
5.6.60.1130.05020.86
5.6.50.1030.05720.94
5.6.40.1300.08320.66
5.6.30.1070.06020.83
5.6.20.0970.06320.89
5.6.10.1300.07020.79
5.6.00.1270.05720.79
5.5.360.1870.07020.90
5.5.350.1200.06720.79
5.5.340.1170.05721.07
5.5.330.1170.07021.22
5.5.320.1100.06721.28
5.5.310.1270.05021.36
5.5.300.1370.05721.30
5.5.290.1530.08321.25
5.5.280.0500.06721.25
5.5.270.1470.07021.08
5.5.260.1400.06021.11
5.5.250.1230.06020.88
5.5.240.1370.05020.64
5.5.230.1100.06320.66
5.5.220.0900.06320.73
5.5.210.1230.06020.48
5.5.200.1430.06720.70
5.5.190.1270.07020.63
5.5.180.1100.06720.66
5.5.160.0900.06320.66
5.5.150.1200.05720.57
5.5.140.1100.05320.41
5.5.130.1400.06720.57
5.5.120.1300.07020.59
5.5.110.1470.04720.60
5.5.100.1070.05720.34
5.5.90.1070.06320.61
5.5.80.1070.06020.58
5.5.70.1070.06320.32
5.5.60.1000.06720.48
5.5.50.1300.07020.57
5.5.40.1330.08020.65
5.5.30.1070.07020.62
5.5.20.1170.07320.58
5.5.10.1030.06720.48
5.5.00.1530.05720.38

preferences:
49.07 ms | 400 KiB | 5 Q