3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { static $bar; if ( !$bar ) { $bar = 123; } var_dump($bar); } foo(); $refl = new ReflectionFunction( 'foo' ); $statics = $refl->getStaticVariables(); $statics['bar'] = 456; foo();

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.0090.00918.56
8.3.50.0070.01121.97
8.3.40.0140.00018.84
8.3.30.0170.00018.92
8.3.20.0070.00020.09
8.3.10.0030.00623.66
8.3.00.0000.00719.02
8.2.180.0100.01018.61
8.2.170.0030.01022.96
8.2.160.0140.00020.44
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00022.05
8.2.110.0060.00322.11
8.2.100.0070.00417.91
8.2.90.0050.00319.19
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0070.00318.03
8.2.50.0030.00618.07
8.2.40.0050.00319.95
8.2.30.0000.00718.36
8.2.20.0000.00817.62
8.2.10.0090.00018.05
8.2.00.0000.00717.73
8.1.280.0100.00325.92
8.1.270.0080.00023.91
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00422.06
8.1.230.0070.00319.16
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.13
8.1.190.0060.00317.00
8.1.180.0030.00619.14
8.1.170.0050.00318.57
8.1.160.0040.00422.02
8.1.150.0040.00418.55
8.1.140.0040.00417.36
8.1.130.0030.00317.82
8.1.120.0070.00017.52
8.1.110.0050.00217.43
8.1.100.0070.00017.50
8.1.90.0040.00417.48
8.1.80.0070.00017.39
8.1.70.0030.00317.41
8.1.60.0000.00817.46
8.1.50.0000.00717.54
8.1.40.0030.00617.50
8.1.30.0030.00517.57
8.1.20.0070.00417.69
8.1.10.0050.00217.50
8.1.00.0080.00017.51
8.0.300.0040.00418.77
8.0.290.0050.00317.04
8.0.280.0000.00718.39
8.0.270.0030.00317.31
8.0.260.0000.00718.31
8.0.250.0030.00316.82
8.0.240.0000.01016.96
8.0.230.0000.00716.90
8.0.220.0040.00416.73
8.0.210.0000.00716.79
8.0.200.0060.00016.84
8.0.190.0040.00416.95
8.0.180.0000.00716.88
8.0.170.0000.00816.88
8.0.160.0080.00016.83
8.0.150.0050.00316.80
8.0.140.0080.00016.85
8.0.130.0000.00513.30
8.0.120.0000.00816.88
8.0.110.0040.00416.89
8.0.100.0060.00316.83
8.0.90.0050.00316.90
8.0.80.0100.01016.83
8.0.70.0000.00816.93
8.0.60.0050.00216.70
8.0.50.0000.00716.99
8.0.30.0120.00817.00
8.0.20.0090.00917.40
8.0.10.0000.00716.82
8.0.00.0080.01016.73
7.4.330.0020.00215.00
7.4.320.0030.00316.49
7.4.300.0060.00016.45
7.4.290.0000.00716.48
7.4.280.0070.00016.46
7.4.270.0030.00316.51
7.4.260.0070.00016.40
7.4.250.0040.00416.50
7.4.240.0040.00416.62
7.4.230.0030.00516.33
7.4.220.0130.00616.66
7.4.210.0030.01216.57
7.4.200.0000.00716.57
7.4.190.0000.00716.35
7.4.160.0090.00616.35
7.4.150.0080.00817.40
7.4.140.0150.01417.86
7.4.130.0120.00816.54
7.4.120.0090.01016.50
7.4.110.0120.00516.49
7.4.100.0040.01516.42
7.4.90.0120.00916.48
7.4.80.0100.01319.39
7.4.70.0030.01416.38
7.4.60.0150.00016.55
7.4.50.0080.00016.54
7.4.40.0060.01216.54
7.4.30.0130.00316.60
7.4.00.0050.01115.16
7.3.330.0060.00013.13
7.3.320.0000.00613.25
7.3.310.0070.00016.30
7.3.300.0050.00216.25
7.3.290.0060.00816.32
7.3.280.0060.01216.32
7.3.270.0070.01117.40
7.3.260.0100.00716.14
7.3.250.0110.00616.42
7.3.240.0070.01116.24
7.3.230.0080.00816.39
7.3.210.0160.00616.09
7.3.200.0130.01019.39
7.3.190.0090.01216.61
7.3.180.0070.00916.20
7.3.170.0090.00716.66
7.3.160.0060.00916.21
7.3.120.0030.01014.80
7.2.330.0090.01216.72
7.2.320.0090.01316.69
7.2.310.0100.00716.61
7.2.300.0040.01316.54
7.2.290.0030.01216.46
7.2.00.0000.01319.54
7.1.100.0100.00717.84
7.1.70.0070.00316.93
7.1.60.0060.01619.46
7.1.50.0220.00917.03
7.1.00.0100.07022.48
7.0.200.0000.00816.78
7.0.140.0030.07321.95
7.0.60.0100.06019.93
7.0.50.0170.06717.85
7.0.40.0130.04720.24
7.0.30.0170.05320.30
7.0.20.0300.06020.12
7.0.10.0070.05020.04
7.0.00.0030.08720.06
5.6.280.0070.07020.78
5.6.210.0000.04320.45
5.6.200.0170.05018.16
5.6.190.0070.07020.61
5.6.180.0170.07720.63
5.6.170.0230.04020.54
5.6.160.0100.05320.46
5.6.150.0030.04718.14
5.6.140.0070.07718.18
5.6.130.0100.07718.12
5.6.120.0100.08321.13
5.6.110.0130.07721.02
5.6.100.0200.07021.01
5.6.90.0100.05320.98
5.6.80.0100.08020.39
5.5.350.3830.04320.43
5.5.340.0030.06718.08
5.5.330.0070.06320.40
5.5.320.0370.07020.51
5.5.310.0300.04320.27
5.5.300.0070.06317.99
5.5.290.0030.04017.98
5.5.280.0070.07020.88
5.5.270.0070.08320.79
5.5.260.0070.08720.95
5.5.250.0230.07320.69
5.5.240.0300.08020.02
5.4.450.0570.06319.17
5.4.440.0530.07019.52
5.4.430.0430.05019.41
5.4.420.0400.03319.54
5.4.410.0470.06019.28
5.4.400.0500.05719.22
5.4.390.0430.05018.98
5.4.380.0330.07318.98
5.4.370.0470.03319.00
5.4.360.0370.06019.20
5.4.350.0470.05719.14
5.4.340.0370.05319.08
5.4.320.0330.03319.06
5.4.310.0500.05719.00
5.4.300.0300.06019.19
5.4.290.0370.04319.04
5.4.280.0430.06319.11
5.4.270.0300.05719.30
5.4.260.0370.04019.22
5.4.250.0430.06719.13
5.4.240.0400.06718.99
5.4.230.0470.04019.30
5.4.220.0430.06319.20
5.4.210.0430.06319.07
5.4.200.0400.04019.13
5.4.190.0430.07019.23
5.4.180.0400.07019.20
5.4.170.0300.05318.98
5.4.160.0330.04018.96
5.4.150.0430.07018.96
5.4.140.0500.07016.32
5.4.130.0500.04016.29
5.4.120.0430.04716.35
5.4.110.0500.04316.25
5.4.100.0500.06316.19
5.4.90.0430.04716.54
5.4.80.0470.02716.20
5.4.70.0370.04316.52
5.4.60.0430.02716.53
5.4.50.0330.03716.52
5.4.40.0470.06716.33
5.4.30.0500.06316.42
5.4.20.0470.06316.42
5.4.10.0500.03716.50
5.4.00.0500.06015.95
5.3.290.0400.04714.66
5.3.280.0530.06314.59
5.3.270.0470.03714.82
5.3.260.0530.06014.50
5.3.250.0530.06314.62
5.3.240.0400.03714.68
5.3.230.0570.06314.57
5.3.220.0430.06714.59
5.3.210.0400.04314.46
5.3.200.0400.04714.54
5.3.190.0400.03314.50
5.3.180.0470.07014.55
5.3.170.0500.04014.71
5.3.160.0330.04714.61
5.3.150.0370.04314.80
5.3.140.0400.04714.71
5.3.130.0400.04314.56
5.3.120.0470.06714.45
5.3.110.0500.06014.63
5.3.100.0470.06714.04
5.3.90.0400.04313.99
5.3.80.0370.04713.88
5.3.70.0300.05713.92
5.3.60.0400.03714.05
5.3.50.0400.07013.86
5.3.40.0470.06713.93
5.3.30.0400.04713.81
5.3.20.0500.06313.71
5.3.10.0500.03313.57
5.3.00.0470.06313.54
5.2.170.0400.05312.49
5.2.160.0370.04712.49
5.2.150.0370.03712.49
5.2.140.0370.05712.49
5.2.130.0370.04012.49
5.2.120.0370.03012.49
5.2.110.0370.02312.49
5.2.100.0400.05012.49
5.2.90.0430.05312.49
5.2.80.0330.03012.49
5.2.70.0370.03712.49
5.2.60.0370.02312.49
5.2.50.0330.03712.49
5.2.40.0300.02312.49
5.2.30.0270.03712.49
5.2.20.0300.05312.49
5.2.10.0370.03012.49
5.2.00.0300.03712.49
5.1.60.0400.02012.49
5.1.50.0300.05312.49
5.1.40.0330.02712.49
5.1.30.0270.04012.49
5.1.20.0300.03012.49
5.1.10.0270.02312.49
5.1.00.0230.03012.49
5.0.50.0230.03312.49
5.0.40.0200.03312.49
5.0.30.0170.05312.49
5.0.20.0170.04712.49
5.0.10.0200.04012.49
5.0.00.0200.05312.49
4.4.90.0200.02312.49
4.4.80.0200.01012.49
4.4.70.0270.02712.49
4.4.60.0170.02012.49
4.4.50.0200.01312.49
4.4.40.0200.05012.49
4.4.30.0130.01712.49
4.4.20.0130.02312.49
4.4.10.0130.03312.49
4.4.00.0200.02712.49
4.3.110.0130.02712.49
4.3.100.0130.03012.49
4.3.90.0170.02712.49
4.3.80.0170.05012.49
4.3.70.0170.03312.49
4.3.60.0200.03012.49
4.3.50.0170.02312.49
4.3.40.0170.03712.49
4.3.30.0130.03312.49
4.3.20.0100.03012.49
4.3.10.0100.02712.49
4.3.00.0170.02312.49

preferences:
52.22 ms | 400 KiB | 5 Q