3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testStatic { var $myvar = 'blah'; function give() { if ( isset($this) && (is_null($this)) ) { die('instance method cannot be called statically'); } return self::$myvar; } } echo testStatic::give();

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.0000.01418.55
8.3.50.0070.01022.05
8.3.40.0070.00718.80
8.3.30.0090.00619.08
8.3.20.0080.00020.33
8.3.10.0040.00422.09
8.3.00.0040.00422.44
8.2.180.0190.00016.74
8.2.170.0070.01022.96
8.2.160.0040.01118.79
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0080.00019.36
8.2.110.0060.00320.96
8.2.100.0080.00317.75
8.2.90.0000.00919.23
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0030.00617.91
8.2.50.0060.00318.07
8.2.40.0000.00817.99
8.2.30.0000.00718.11
8.2.20.0050.00217.64
8.2.10.0000.00717.62
8.2.00.0000.01017.62
8.1.280.0070.01425.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0130.00322.68
8.1.230.0090.00317.42
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0030.00617.22
8.1.190.0040.00417.40
8.1.180.0020.00518.61
8.1.170.0080.00018.52
8.1.160.0000.00821.95
8.1.150.0000.00718.45
8.1.140.0040.00417.38
8.1.130.0050.00217.81
8.1.120.0000.00717.37
8.1.110.0100.00017.17
8.1.100.0000.00717.34
8.1.90.0050.00317.33
8.1.80.0000.00717.25
8.1.70.0070.00017.30
8.1.60.0050.00317.44
8.1.50.0000.00717.46
8.1.40.0040.00417.34
8.1.30.0080.00017.53
8.1.20.0030.00517.43
8.1.10.0040.00417.55
8.1.00.0040.00717.41
8.0.300.0000.00818.77
8.0.290.0040.00417.18
8.0.280.0000.00818.27
8.0.270.0080.00017.25
8.0.260.0000.00616.82
8.0.250.0080.00017.00
8.0.240.0070.00016.84
8.0.230.0000.00717.02
8.0.220.0000.00716.91
8.0.210.0000.00716.89
8.0.200.0030.00316.98
8.0.190.0030.00616.84
8.0.180.0040.00416.88
8.0.170.0000.00716.92
8.0.160.0030.00716.79
8.0.150.0070.00016.77
8.0.140.0000.00716.89
8.0.130.0030.00513.39
8.0.120.0050.00316.74
8.0.110.0040.00416.78
8.0.100.0000.00816.75
8.0.90.0080.00016.89
8.0.80.0150.00016.82
8.0.70.0000.00716.96
8.0.60.0000.00716.93
8.0.50.0070.00016.77
8.0.30.0090.01317.12
8.0.20.0090.00917.40
8.0.10.0040.00416.75
8.0.00.0060.01416.58
7.4.330.0050.00015.09
7.4.320.0000.00816.43
7.4.300.0060.00016.57
7.4.290.0000.00716.36
7.4.280.0030.00316.35
7.4.270.0070.00016.59
7.4.260.0000.00716.41
7.4.250.0000.00716.32
7.4.240.0040.00316.45
7.4.230.0000.00716.43
7.4.220.0150.00616.58
7.4.210.0070.00916.58
7.4.200.0000.00716.54
7.4.190.0030.00316.68
7.4.160.0070.01616.62
7.4.150.0100.00717.40
7.4.140.0100.00717.86
7.4.130.0130.00716.58
7.4.120.0070.01016.58
7.4.110.0070.01016.42
7.4.100.0100.00716.45
7.4.90.0070.01016.31
7.4.80.0070.01719.39
7.4.70.0060.00916.45
7.4.60.0100.00616.45
7.4.50.0000.00616.50
7.4.40.0060.00322.77
7.4.30.0000.01616.18
7.4.00.0050.01214.83
7.3.330.0050.00013.18
7.3.320.0050.00013.34
7.3.310.0080.00016.26
7.3.300.0000.00716.30
7.3.290.0030.01216.33
7.3.280.0080.00916.37
7.3.270.0190.00617.40
7.3.260.0080.01116.40
7.3.250.0140.00316.50
7.3.240.0100.00616.58
7.3.230.0100.00616.39
7.3.210.0110.00616.60
7.3.200.0130.00316.45
7.3.190.0070.01316.39
7.3.180.0080.00816.54
7.3.170.0140.00716.38
7.3.160.0120.00516.43
7.3.120.0110.00614.88
7.3.110.0060.01214.83
7.3.100.0060.00914.63
7.3.90.0000.01514.82
7.3.80.0030.01015.06
7.3.70.0060.00614.82
7.3.60.0030.00814.70
7.3.50.0070.00714.80
7.3.40.0100.00714.73
7.3.30.0040.00814.77
7.3.20.0000.01616.71
7.3.10.0000.01516.52
7.3.00.0070.00716.45
7.2.330.0170.01616.39
7.2.320.0150.00916.75
7.2.310.0080.01216.58
7.2.300.0030.01316.68
7.2.290.0080.01116.80
7.2.250.0030.01315.20
7.2.240.0040.01514.98
7.2.230.0030.01514.63
7.2.220.0120.00614.53
7.2.210.0030.01314.87
7.2.200.0070.00714.92
7.2.190.0060.00615.05
7.2.180.0060.00914.81
7.2.170.0030.00614.76
7.2.60.0030.01016.84
7.2.00.0000.01419.15
7.1.330.0060.00615.79
7.1.320.0030.00615.80
7.1.310.0000.01315.69
7.1.300.0060.00915.81
7.1.290.0060.00315.82
7.1.280.0030.01015.50
7.1.270.0030.01315.63
7.1.260.0030.00915.70
7.1.200.0120.00315.52
7.1.100.0090.00318.10
7.1.70.0040.00416.93
7.1.60.0060.01619.82
7.1.50.0100.01316.82
7.1.00.0070.07722.31
7.0.200.0000.00816.46
7.0.140.0100.06722.09
7.0.60.0100.03719.88
7.0.50.0030.04717.84
7.0.40.0070.06020.11
7.0.30.0270.03720.35
7.0.20.0170.07720.05
7.0.10.0070.06320.08
7.0.00.0100.08720.08
5.6.280.0030.07320.87
5.6.210.0200.06320.71
5.6.200.0100.08018.25
5.6.190.0200.07720.52
5.6.180.3770.03720.77
5.6.170.0330.07320.62
5.6.160.0100.08320.57
5.6.150.0100.04318.17
5.6.140.0000.06718.17
5.6.130.0130.05318.28
5.6.120.0100.08321.00
5.6.110.0070.07321.02
5.6.100.0070.08020.89
5.6.90.0030.04021.11
5.6.80.0100.07320.36
5.6.70.4630.03020.50
5.5.350.0430.06020.44
5.5.340.0070.05317.98
5.5.330.0100.07320.30
5.5.320.3500.05320.20
5.5.310.0300.07720.35
5.5.300.0070.08017.95
5.5.290.0030.08318.03
5.5.280.0170.07320.88
5.5.270.0030.04320.89
5.5.260.0130.06320.73
5.5.250.0070.03720.62
5.5.240.0200.05320.12
5.4.450.0530.05319.20
5.4.440.0230.05319.52
5.4.430.0200.04319.32
5.4.420.0170.04719.21
5.4.410.0030.06019.46
5.4.400.0900.00018.80
5.4.390.1000.00018.63
5.4.380.0270.05018.76
5.4.370.0300.05018.52
5.4.360.0270.05718.59
5.4.350.0100.06018.59
5.4.340.0130.05018.58
5.4.320.0080.04512.50
5.4.310.0050.04112.50
5.4.300.0060.03712.50
5.4.290.0060.04412.50
5.4.280.0040.03812.39
5.4.270.0030.05318.75
5.4.260.0130.06018.96
5.4.250.0030.05718.65
5.4.240.0100.05018.99
5.4.230.0100.05318.81
5.4.220.0030.08018.75
5.4.210.0070.05318.94
5.4.200.0070.06718.76
5.4.190.0030.05718.96
5.4.180.0170.06018.82
5.4.170.0100.05019.00
5.4.160.0170.04318.78
5.4.150.0030.05718.94
5.4.140.0070.05016.49
5.4.130.0030.06016.40
5.4.120.0070.05316.38
5.4.110.0070.05016.38
5.4.100.0100.05016.48
5.4.90.0170.05316.66
5.4.80.0070.05016.63
5.4.70.0100.04716.59
5.4.60.0070.05016.59
5.4.50.0070.04716.30
5.4.40.0200.04016.52
5.4.30.0100.06316.50
5.4.20.0200.05716.31
5.4.10.0030.05016.46
5.4.00.0130.06316.01
5.3.290.0060.04112.80
5.3.280.0030.06014.50
5.3.270.0130.06714.74
5.3.260.0100.05314.66
5.3.250.0030.06714.67
5.3.240.0070.05014.70
5.3.230.0100.05714.81
5.3.220.0070.05314.65
5.3.210.0100.04714.57
5.3.200.0030.05014.65
5.3.190.0070.05014.56
5.3.180.0130.05314.62
5.3.170.0030.06314.65
5.3.160.0130.05014.58
5.3.150.0070.05014.65
5.3.140.0100.04714.46
5.3.130.0130.05014.45
5.3.120.0070.05014.65
5.3.110.0130.06314.62
5.3.100.0170.04014.19
5.3.90.0030.05014.03
5.3.80.0030.05014.10
5.3.70.0000.05714.19
5.3.60.0000.06313.82
5.3.50.0030.05013.85
5.3.40.0070.05713.93
5.3.30.0100.04314.13
5.3.20.0070.04713.85
5.3.10.0100.05013.82
5.3.00.0100.04313.60
5.2.170.0100.03711.13
5.2.160.0070.05011.30
5.2.150.0030.04011.30
5.2.140.0070.04011.13
5.2.130.0000.04311.28
5.2.120.0100.05311.07
5.2.110.0030.04011.18
5.2.100.0030.04011.09
5.2.90.0000.04311.11
5.2.80.0030.04311.08
5.2.70.0030.04010.99
5.2.60.0100.03311.13
5.2.50.0170.03711.09
5.2.40.0070.03711.05
5.2.30.0070.05311.05
5.2.20.0030.04010.86
5.2.10.0070.04010.86
5.2.00.0000.04310.79
5.1.60.0100.0279.96
5.1.50.0030.03710.23
5.1.40.0070.0309.95
5.1.30.0070.03010.23
5.1.20.0130.04710.36
5.1.10.0030.04310.15
5.1.00.0000.03710.04
5.0.50.0000.0338.58
5.0.40.0070.0238.37
5.0.30.0000.0608.29
5.0.20.0000.0378.18
5.0.10.0000.0308.16
5.0.00.0070.0538.13
4.4.90.0070.0176.64
4.4.80.0070.0176.64
4.4.70.0000.0236.64
4.4.60.0030.0206.64
4.4.50.0000.0236.64
4.4.40.0000.0376.63
4.4.30.0100.0136.63
4.4.20.0030.0306.63
4.4.10.0030.0306.63
4.4.00.0030.0336.63
4.3.110.0000.0236.63
4.3.100.0000.0276.63
4.3.90.0000.0236.63
4.3.80.0030.0306.63
4.3.70.0000.0206.63
4.3.60.0030.0206.63
4.3.50.0030.0206.63
4.3.40.0000.0336.63
4.3.30.0000.0206.63
4.3.20.0000.0306.63
4.3.10.0030.0276.63
4.3.00.0030.0207.30

preferences:
46.85 ms | 401 KiB | 5 Q