3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Pizza{ public function show(){ return 'Yeas - ' . phpversion(); } public static function xpto(){ return new static; } } echo Pizza::xpto()->show();

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)
7.4.10.0070.00314.89
7.4.00.0060.01215.15
7.3.130.0070.01014.72
7.3.120.0080.00814.73
7.3.110.0110.00514.73
7.3.100.0050.00814.79
7.3.90.0110.00214.62
7.3.80.0050.00914.78
7.3.70.0030.00814.77
7.3.60.0070.00714.79
7.3.50.0050.00814.82
7.3.40.0070.00614.59
7.3.30.0060.00814.64
7.3.20.0040.00716.59
7.3.10.0070.00616.53
7.3.00.0050.00816.54
7.2.260.0060.00615.11
7.2.250.0130.00315.10
7.2.240.0070.00614.67
7.2.230.0030.01114.79
7.2.220.0030.01314.80
7.2.210.0090.00515.04
7.2.200.0070.00714.94
7.2.190.0020.01214.91
7.2.180.0080.00514.81
7.2.170.0090.00614.77
7.2.160.0080.00614.75
7.2.150.0030.00916.83
7.2.140.0100.00316.87
7.2.130.0070.00716.68
7.2.120.0040.00816.80
7.2.110.0080.00716.75
7.2.100.0050.00716.79
7.2.90.0050.00716.76
7.2.80.0070.00816.67
7.2.70.0080.00616.68
7.2.60.0060.00716.66
7.2.50.0050.01216.75
7.2.40.0070.00716.52
7.2.30.0070.00816.69
7.2.20.0080.00916.67
7.2.10.0050.01016.78
7.2.00.0070.00817.29
7.1.330.0030.00915.81
7.1.320.0050.00815.69
7.1.310.0080.00615.72
7.1.300.0060.00915.75
7.1.290.0050.01015.71
7.1.280.0020.01115.60
7.1.270.0070.00415.52
7.1.260.0030.00915.63
7.1.250.0050.00915.81
7.1.240.0030.00815.77
7.1.230.0080.00315.36
7.1.220.0040.00715.77
7.1.210.0060.00615.84
7.1.200.0110.00015.72
7.1.190.0000.01315.84
7.1.180.0040.00815.64
7.1.170.0030.01015.81
7.1.160.0040.00415.72
7.1.150.0130.00315.72
7.1.140.0040.00415.40
7.1.130.0060.00315.79
7.1.120.0060.00615.70
7.1.110.0040.00415.61
7.1.100.0070.01017.04
7.1.90.0040.00415.52
7.1.80.0000.01315.67
7.1.70.0000.00816.37
7.1.60.0070.01017.54
7.1.50.0090.00315.90
7.1.40.0000.01215.59
7.1.30.0140.00315.85
7.1.20.0030.01015.51
7.1.10.0040.00715.71
7.1.00.0030.04319.10
7.0.330.0040.00415.02
7.0.320.0000.01015.21
7.0.310.0000.01415.61
7.0.300.0000.01015.40
7.0.290.0030.00715.35
7.0.280.0070.00715.31
7.0.270.0070.00715.38
7.0.260.0040.00415.32
7.0.250.0030.00715.45
7.0.240.0070.00715.52
7.0.230.0030.00615.16
7.0.220.0030.00615.41
7.0.210.0080.00315.21
7.0.200.0040.00814.81
7.0.190.0080.00015.34
7.0.180.0000.00915.52
7.0.170.0070.00715.41
7.0.160.0000.01815.12
7.0.150.0040.00815.23
7.0.140.0030.01015.46
7.0.130.0070.00715.15
7.0.120.0000.01015.34
7.0.110.0090.00615.35
7.0.100.0080.04017.66
7.0.90.0100.04017.63
7.0.80.0110.04217.75
7.0.70.0100.04117.67
7.0.60.0080.04017.55
7.0.50.0050.04017.73
7.0.40.0070.04216.79
7.0.30.0050.03016.61
7.0.20.0030.04716.66
7.0.10.0080.02316.68
7.0.00.0100.03116.75
5.6.400.0000.00814.54
5.6.390.0070.00714.29
5.6.380.0080.00014.40
5.6.370.0100.00314.23
5.6.360.0120.00013.84
5.6.350.0060.00314.50
5.6.340.0160.00014.53
5.6.330.0030.01214.34
5.6.320.0070.00714.39
5.6.310.0030.01214.32
5.6.300.0070.00714.12
5.6.290.0060.00614.56
5.6.280.0030.04317.75
5.6.270.0130.00314.34
5.6.260.0060.00314.54
5.6.250.0060.02817.42
5.6.240.0050.02717.41
5.6.230.0050.02417.43
5.6.220.0100.04017.43
5.6.210.0070.04717.37
5.6.200.0110.03317.64
5.6.190.0050.03217.62
5.6.180.0050.04017.83
5.6.170.0050.02417.53
5.6.160.0070.03817.55
5.6.150.0080.02317.79
5.6.140.0100.02317.48
5.6.130.0080.04017.61
5.6.120.0050.05017.68
5.6.110.0020.04617.77
5.6.100.0050.02917.65
5.6.90.0100.04217.69
5.6.80.0030.04717.37
5.6.70.0080.03017.46
5.6.60.0050.02517.41
5.6.50.0050.04517.49
5.6.40.0110.02017.33
5.6.30.0030.02817.25
5.6.20.0060.04517.29
5.6.10.0100.04017.21
5.6.00.0080.04017.15
5.5.380.0080.04517.40
5.5.370.0110.02717.28
5.5.360.0050.03017.13
5.5.350.0080.02317.27
5.5.340.0080.04517.69
5.5.330.0130.01717.47
5.5.320.0080.02217.57
5.5.310.0050.03617.59
5.5.300.0100.03317.45
5.5.290.0020.05017.63
5.5.280.0070.04517.62
5.5.270.0120.04217.61
5.5.260.0080.02117.57
5.5.250.0090.04017.51
5.5.240.0070.02417.21
5.5.230.0100.03316.94
5.5.220.0080.04117.19
5.5.210.0090.04217.17
5.5.200.0100.04017.20
5.5.190.0070.02716.98
5.5.180.0090.04017.06
5.5.170.0000.01314.15
5.5.160.0050.03016.90
5.5.150.0060.02717.17
5.5.140.0030.04317.20
5.5.130.0070.04017.13
5.5.120.0020.04917.09
5.5.110.0100.04217.00
5.5.100.0100.04217.05
5.5.90.0030.04217.03
5.5.80.0100.03017.16
5.5.70.0080.04717.02
5.5.60.0060.04116.99
5.5.50.0100.03817.08
5.5.40.0030.04117.11
5.5.30.0050.03317.07
5.5.20.0130.03716.89
5.5.10.0050.04217.12
5.5.00.0070.03517.05
5.4.450.0070.07319.36
5.4.440.0130.07019.36
5.4.430.0070.06319.46
5.4.420.0030.08319.23
5.4.410.0070.07019.20
5.4.400.0100.05718.95
5.4.390.0070.04019.18
5.4.380.0030.08018.95
5.4.370.0130.07719.12
5.4.360.0230.06319.22
5.4.350.0100.06719.05
5.4.340.0070.06719.23
5.4.320.0100.04019.16
5.4.310.0130.07019.07
5.4.300.0070.04319.12
5.4.290.0070.04319.16
5.4.280.0000.08319.20
5.4.270.0030.07019.17
5.4.260.0030.08719.03
5.4.250.0100.07019.15
5.4.240.0030.08019.11
5.4.230.0170.06019.02
5.4.220.0070.07018.84
5.4.210.0130.07019.08
5.4.200.0100.07018.84
5.4.190.0070.06719.09
5.4.180.0070.07019.17
5.4.170.0100.07018.86
5.4.160.0130.07018.88
5.4.150.0100.07319.02
5.4.140.0100.07016.37
5.4.130.0070.07016.38
5.4.120.0030.06316.35
5.4.110.0000.06016.46
5.4.100.0130.06316.51
5.4.90.0070.07016.44
5.4.80.0070.04716.45
5.4.70.0070.07016.38
5.4.60.0070.06716.37
5.4.50.0100.07316.47
5.4.40.0070.07316.42
5.4.30.0070.04316.30
5.4.20.0070.07316.24
5.4.10.0000.07716.32
5.4.00.0070.04315.72
5.3.290.0070.07714.73
5.3.280.0100.06014.71
5.3.270.0070.05314.63
5.3.260.0000.05314.61
5.3.250.0070.05314.66
5.3.240.0130.07014.54
5.3.230.0170.06314.61
5.3.220.0100.06014.52
5.3.210.0070.07714.62
5.3.200.0070.07714.63
5.3.190.0130.07314.57
5.3.180.0070.08314.66
5.3.170.0070.06714.51
5.3.160.0130.05714.67
5.3.150.0100.07314.53
5.3.140.0030.07314.66
5.3.130.0170.06714.61
5.3.120.0130.04314.53
5.3.110.0030.08014.61
5.3.100.0130.07314.13
5.3.90.0000.05714.07
5.3.80.0030.07314.00
5.3.70.0100.07014.07
5.3.60.0000.07713.92
5.3.50.0000.04714.00
5.3.40.0130.06013.88
5.3.30.0100.06714.04
5.3.20.0030.07313.62
5.3.10.0000.04313.71
5.3.00.0100.07313.78
5.2.170.0000.06311.05
5.2.160.0230.02711.19
5.2.150.0070.05311.20
5.2.140.0030.07011.13
5.2.130.0130.05311.09
5.2.120.0030.03711.20
5.2.110.0000.07011.17
5.2.100.0000.05711.24
5.2.90.0070.04711.09
5.2.80.0070.05711.18
5.2.70.0000.06011.09
5.2.60.0030.04310.98
5.2.50.0030.04011.08
5.2.40.0100.05310.98
5.2.30.0100.05010.98
5.2.20.0070.04711.04
5.2.10.0070.04710.78
5.2.00.0030.06010.73
5.1.60.0000.03010.03
5.1.50.0030.02710.09
5.1.40.0030.04310.05
5.1.30.0070.02710.20
5.1.20.0000.02710.44
5.1.10.0030.03010.21
5.1.00.0030.02310.13
5.0.50.0030.0278.56
5.0.40.0000.0238.50
5.0.30.0070.0278.21
5.0.20.0000.0208.23
5.0.10.0030.0178.16
5.0.00.0000.0338.25
4.4.90.0030.0338.05
4.4.80.0030.0238.05
4.4.70.0030.0378.05
4.4.60.0070.0138.05
4.4.50.0030.0138.05
4.4.40.0070.0538.05
4.4.30.0070.0308.05
4.4.20.0030.0138.05
4.4.10.0070.0208.05
4.4.00.0000.0278.05
4.3.110.0000.0178.05
4.3.100.0030.0178.05
4.3.90.0030.0138.05
4.3.80.0030.0208.05
4.3.70.0030.0138.05
4.3.60.0030.0138.05
4.3.50.0000.0178.05
4.3.40.0030.0208.05
4.3.30.0000.0138.05
4.3.20.0000.0178.05
4.3.10.0000.0178.05
4.3.00.0000.0178.05

preferences:
27.74 ms | 404 KiB | 6 Q