3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $varInt = 123; $varString = 'Some string'; $varArray = array(1,2,3); $varObject = new stdClass(); function expectInt(integer $a) { } function expectString(string $a) { } function expectArray(array $a) { } function expectObject(stdClass $a) { } expectInt($varInt);

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.0040.01116.75
8.3.50.0040.01316.62
8.3.40.0070.00718.86
8.3.30.0150.00018.84
8.3.20.0040.00418.76
8.3.10.0080.00020.36
8.3.00.0080.00019.38
8.2.180.0120.00918.66
8.2.170.0070.01022.96
8.2.160.0170.00321.02
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0000.00820.75
8.2.110.0030.00720.86
8.2.100.0120.00017.91
8.2.90.0020.00519.29
8.2.80.0040.00719.21
8.2.70.0040.00417.38
8.2.60.0000.00817.93
8.2.50.0070.00318.07
8.2.40.0000.00718.03
8.2.30.0040.00417.89
8.2.20.0000.00817.54
8.2.10.0000.00817.66
8.2.00.0030.00517.76
8.1.280.0130.00325.92
8.1.270.0050.00324.66
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00422.31
8.1.230.0070.00720.90
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0000.00717.53
8.1.180.0070.00318.10
8.1.170.0000.00718.85
8.1.160.0040.00418.68
8.1.150.0080.00018.43
8.1.140.0000.00717.35
8.1.130.0030.00317.84
8.1.120.0000.00717.30
8.1.110.0030.00517.40
8.1.100.0040.00417.40
8.1.90.0070.00017.46
8.1.80.0070.00017.43
8.1.70.0030.00317.34
8.1.60.0040.00417.62
8.1.50.0040.00417.44
8.1.40.0080.00017.40
8.1.30.0040.00417.49
8.1.20.0040.00417.55
8.1.10.0080.00017.61
8.1.00.0080.00017.44
8.0.300.0040.00420.02
8.0.290.0080.00016.63
8.0.280.0000.00818.35
8.0.270.0040.00417.25
8.0.260.0070.00016.70
8.0.250.0070.00016.83
8.0.240.0040.00416.85
8.0.230.0070.00016.96
8.0.220.0050.00216.84
8.0.210.0040.00416.94
8.0.200.0030.00316.91
8.0.190.0040.00416.96
8.0.180.0040.00416.75
8.0.170.0090.00016.73
8.0.160.0030.00316.93
8.0.150.0060.00316.76
8.0.140.0040.00416.77
8.0.130.0060.00013.40
8.0.120.0040.00416.91
8.0.110.0040.00416.82
8.0.100.0000.00716.71
8.0.90.0000.00716.81
8.0.80.0090.00616.89
8.0.70.0000.00816.93
8.0.60.0000.00816.93
8.0.50.0040.00416.95
8.0.30.0040.01417.31
8.0.20.0110.00817.09
8.0.10.0070.00016.98
8.0.00.0090.01116.71
7.4.330.0000.00512.95
7.4.320.0060.00016.57
7.4.300.0000.00616.43
7.4.290.0000.00716.43
7.4.280.0060.00616.51
7.4.270.0000.00716.50
7.4.260.0050.00013.33
7.4.250.0000.00816.47
7.4.240.0070.00016.51
7.4.230.0000.00716.49
7.4.220.0140.00616.64
7.4.210.0080.00916.59
7.4.200.0000.00716.55
7.4.190.0080.00016.70
7.4.160.0100.00616.43
7.4.150.0070.01116.56
7.4.140.0080.01316.52
7.4.130.0090.01116.60
7.4.120.0100.00716.48
7.4.110.0100.00716.32
7.4.100.0090.00916.54
7.4.90.0090.01216.48
7.4.80.0170.00516.70
7.4.70.0060.00916.68
7.4.60.0000.01716.49
7.4.50.0090.00316.43
7.4.40.0110.00716.34
7.4.30.0070.01416.49
7.4.00.0080.00815.13
7.3.330.0000.00613.29
7.3.320.0030.00313.09
7.3.310.0000.00716.25
7.3.300.0040.00416.29
7.3.290.0050.00916.26
7.3.280.0080.01016.24
7.3.270.0140.00416.32
7.3.260.0130.01016.40
7.3.250.0100.00916.33
7.3.240.0040.01216.30
7.3.230.0100.01316.40
7.3.210.0120.00916.51
7.3.200.0130.00319.39
7.3.190.0060.01116.44
7.3.180.0060.01016.50
7.3.170.0070.01016.35
7.3.160.0060.01016.65
7.3.120.0040.01114.45
7.3.10.0090.00316.81
7.3.00.0090.00316.57
7.2.330.0060.01216.79
7.2.320.0110.01116.73
7.2.310.0070.01716.53
7.2.300.0130.00416.35
7.2.290.0140.00416.66
7.2.130.0090.00616.91
7.2.120.0070.01116.66
7.2.110.0090.00016.81
7.2.100.0030.01316.81
7.2.90.0030.01216.68
7.2.80.0030.00716.92
7.2.70.0040.01116.80
7.2.60.0030.01116.75
7.2.50.0080.00316.65
7.2.40.0070.01016.68
7.2.30.0060.00616.88
7.2.20.0060.00916.93
7.2.10.0100.00716.81
7.2.00.0030.01118.04
7.1.250.0100.00315.22
7.1.200.0070.00015.59
7.1.100.0030.00818.11
7.1.70.0000.00716.80
7.1.60.0130.01019.40
7.1.50.0040.01516.87
7.1.00.0000.04322.26
7.0.200.0080.00016.88
7.0.140.0130.06322.04
7.0.120.0000.07722.16
7.0.60.0000.09319.95
7.0.50.0000.04317.73
7.0.40.0030.08720.18
7.0.30.0200.05320.16
7.0.20.0270.06020.08
7.0.10.0070.06720.16
7.0.00.0100.07320.07
5.6.280.0070.07021.04
5.6.210.0100.05320.55
5.6.200.0130.04718.16
5.6.190.0070.05320.55
5.6.180.3570.03720.51
5.6.170.0200.03720.55
5.6.160.0100.08020.46
5.6.150.0100.07718.22
5.6.140.0030.08718.25
5.6.130.0100.06018.21
5.6.120.0000.08720.97
5.6.110.0070.07721.13
5.6.100.0130.06320.95
5.6.90.0130.07020.96
5.6.80.0200.07020.38
5.5.350.0230.07320.33
5.5.340.0070.08317.99
5.5.330.0030.04320.57
5.5.320.0330.07020.35
5.5.310.0300.04720.32
5.5.300.0000.05717.95
5.5.290.0100.08317.98
5.5.280.0000.07320.65
5.5.270.0030.04320.88
5.5.260.0070.04320.80
5.5.250.0100.08020.71
5.5.240.0000.08020.14
5.4.450.0030.06319.47
5.4.440.0100.08019.57
5.4.430.0030.05319.44
5.4.420.0030.04719.46
5.4.410.0130.06319.28
5.4.400.0070.04019.16
5.4.390.0100.04019.08
5.4.380.0030.07318.92
5.4.370.0030.08018.88
5.4.360.0100.04018.86
5.4.350.0130.07018.86
5.4.340.0070.04319.15
5.4.320.0070.08019.16
5.4.310.0130.06718.85
5.4.300.0200.06018.92
5.4.290.0070.08018.85
5.4.280.0030.05319.23
5.4.270.0000.05018.92
5.4.260.0030.07018.95
5.4.250.0100.04319.14
5.4.240.0100.05719.00
5.4.230.0230.03019.13
5.4.220.0100.07019.14
5.4.210.0100.07019.24
5.4.200.0100.07019.00
5.4.190.0070.04719.10
5.4.180.0100.07718.91
5.4.170.0070.07718.91
5.4.160.0070.06319.14
5.4.150.0130.06318.96
5.4.140.0030.04316.40
5.4.130.0000.03716.43
5.4.120.0100.06716.48
5.4.110.0030.04016.48
5.4.100.0030.03316.50
5.4.90.0070.06716.35
5.4.80.0070.07016.51
5.4.70.0170.07016.47
5.4.60.0170.06016.47
5.4.50.0030.04316.39
5.4.40.0000.08316.41
5.4.30.0030.06016.47
5.4.20.0170.05716.44
5.4.10.0100.07316.34
5.4.00.0070.06715.73
5.3.290.0000.05314.70
5.3.280.0070.07314.66
5.3.270.0100.06014.67
5.3.260.0100.06014.66
5.3.250.0100.06314.66
5.3.240.0030.04014.52
5.3.230.0070.03314.65
5.3.220.0030.07314.64
5.3.210.0070.07714.61
5.3.200.0030.07714.60
5.3.190.0000.08314.59
5.3.180.0000.08014.59
5.3.170.0130.07314.55
5.3.160.0070.04314.63
5.3.150.0100.05014.49
5.3.140.0070.08314.55
5.3.130.0130.07014.56
5.3.120.0100.07714.57
5.3.110.0070.07314.58
5.3.100.0130.07314.11
5.3.90.0100.07014.05
5.3.80.0030.05714.10
5.3.70.0030.04014.04
5.3.60.0100.06714.01
5.3.50.0130.05014.01
5.3.40.0070.08013.88
5.3.30.0100.04313.97
5.3.20.0030.06313.66
5.3.10.0100.06713.70
5.3.00.0030.04013.70
5.2.170.0030.03711.21
5.2.160.0070.06011.32
5.2.150.0070.06011.08
5.2.140.0000.03311.19
5.2.130.0000.03711.16
5.2.120.0070.03711.07
5.2.110.0030.03711.07
5.2.100.0070.05311.11
5.2.90.0070.05311.11
5.2.80.0030.04311.00
5.2.70.0130.02711.09
5.2.60.0070.06311.06
5.2.50.0070.06011.03
5.2.40.0100.02711.06
5.2.30.0100.02311.01
5.2.20.0030.03310.88
5.2.10.0030.03010.93
5.2.00.0030.06310.88
5.1.60.0070.03310.15
5.1.50.0070.0339.99
5.1.40.0130.05010.04
5.1.30.0030.05710.51
5.1.20.0000.05010.31
5.1.10.0100.02310.03
5.1.00.0070.03310.06
5.0.50.0030.0208.69
5.0.40.0070.0408.32
5.0.30.0100.0578.20
5.0.20.0000.0478.25
5.0.10.0070.0278.20
5.0.00.0100.0578.13
4.4.90.0000.0308.08
4.4.80.0030.0178.08
4.4.70.0000.0178.08
4.4.60.0100.0138.08
4.4.50.0000.0278.08
4.4.40.0000.0538.08
4.4.30.0000.0208.08
4.4.20.0000.0408.08
4.4.10.0030.0178.08
4.4.00.0030.0238.08
4.3.110.0070.0238.08
4.3.100.0030.0378.08
4.3.90.0000.0308.08
4.3.80.0000.0608.08
4.3.70.0000.0308.08
4.3.60.0030.0308.08
4.3.50.0030.0378.08
4.3.40.0000.0478.08
4.3.30.0030.0378.08
4.3.20.0070.0308.08
4.3.10.0030.0178.08
4.3.00.0000.0238.08

preferences:
39.34 ms | 400 KiB | 5 Q