3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pens = 'words'; function pencils() { global $pens; $pens = null; } function puppies() { global $pens; var_dump( isset( $pens ) ); } pencils(); puppies();

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.4.20.0030.00618.89
8.4.10.0170.00319.54
8.3.150.0150.00318.95
8.3.140.0190.00020.33
8.3.130.0030.00518.52
8.3.120.0040.00420.71
8.3.110.0090.00020.94
8.3.100.0030.00624.06
8.3.90.0040.00418.22
8.3.80.0060.00319.36
8.3.70.0100.01018.18
8.3.60.0090.00618.46
8.3.50.0140.00716.64
8.3.40.0060.00918.42
8.3.30.0040.01118.39
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.270.0100.00716.95
8.2.260.0090.00916.40
8.2.250.0090.00016.36
8.2.240.0070.00718.92
8.2.230.0030.00622.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0040.01118.88
8.2.190.0170.00318.29
8.2.180.0140.00725.92
8.2.170.0140.00018.96
8.2.160.0100.00322.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0060.00321.16
8.2.110.0030.00622.08
8.2.100.0080.00419.52
8.2.90.0040.00417.63
8.2.80.0080.00018.73
8.2.70.0090.00017.63
8.2.60.0090.00017.80
8.2.50.0040.00418.05
8.2.40.0060.00319.79
8.2.30.0000.00917.99
8.2.20.0000.00718.09
8.2.10.0030.00519.04
8.2.00.0000.00719.21
8.1.310.0040.00716.80
8.1.300.0040.00418.15
8.1.290.0100.00030.84
8.1.280.0080.00825.92
8.1.270.0070.00023.99
8.1.260.0000.00726.35
8.1.250.0030.00528.09
8.1.240.0100.00020.78
8.1.230.0000.01117.77
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0060.00317.23
8.1.190.0080.00017.22
8.1.180.0040.00418.88
8.1.170.0030.00518.39
8.1.160.0040.00419.02
8.1.150.0040.00418.87
8.1.140.0040.00418.69
8.1.130.0000.00717.48
8.1.120.0040.00417.35
8.1.110.0090.00017.27
8.1.100.0050.00317.39
8.1.90.0000.01017.41
8.1.80.0040.00417.28
8.1.70.0050.00317.31
8.1.60.0000.00817.60
8.1.50.0080.00017.49
8.1.40.0050.00317.47
8.1.30.0040.00417.55
8.1.20.0000.00917.49
8.1.10.0040.00417.30
8.1.00.0070.00017.42
8.0.300.0040.00418.77
8.0.290.0070.00016.58
8.0.280.0070.00018.31
8.0.270.0030.00317.92
8.0.260.0030.00316.75
8.0.250.0000.00816.89
8.0.240.0070.00016.86
8.0.230.0070.00016.82
8.0.220.0000.00716.80
8.0.210.0070.00016.89
8.0.200.0030.00316.79
8.0.190.0000.00816.89
8.0.180.0030.00316.86
8.0.170.0080.00016.74
8.0.160.0070.00016.80
8.0.150.0030.00416.66
8.0.140.0030.00616.81
8.0.130.0000.00613.23
8.0.120.0000.00816.67
8.0.110.0000.00716.63
8.0.100.0000.00716.89
8.0.90.0040.00316.86
8.0.80.0100.00716.79
8.0.70.0030.00316.85
8.0.60.0070.00016.82
8.0.50.0050.00316.82
8.0.30.0100.00716.80
8.0.20.0160.00016.86
8.0.10.0190.00316.88
8.0.00.0030.01416.84
7.4.330.0000.00616.78
7.4.320.0000.00616.44
7.4.300.0060.00016.51
7.4.290.0040.00416.44
7.4.280.0070.00016.47
7.4.270.0000.00716.50
7.4.260.0000.00513.26
7.4.250.0070.00016.50
7.4.240.0000.00716.55
7.4.230.0030.00316.38
7.4.220.0020.00516.60
7.4.210.0070.00716.60
7.4.200.0070.00016.39
7.4.160.0090.00616.56
7.4.150.0090.00616.38
7.4.140.0100.00616.48
7.4.130.0090.00616.35
7.4.120.0100.01016.31
7.4.110.0030.01216.27
7.4.100.0090.00616.32
7.4.90.0080.00816.45
7.4.80.0120.00316.35
7.4.70.0060.01216.42
7.4.60.0090.01216.27
7.4.50.0070.01316.36
7.4.40.0100.01216.43
7.4.30.0080.01416.38
7.4.20.0060.01516.43
7.4.10.0090.00616.43
7.4.00.0060.01016.42
7.3.330.0050.00216.22
7.3.320.0020.00213.27
7.3.310.0030.00316.32
7.3.300.0030.00316.08
7.3.290.0100.01016.22
7.3.270.0120.00316.23
7.3.260.0090.00616.28
7.3.250.0070.01116.19
7.3.240.0030.01616.14
7.3.230.0100.01016.21
7.3.220.0030.01716.08
7.3.210.0080.00616.04
7.3.200.0070.01116.11
7.3.190.0100.00716.09
7.3.180.0040.01516.15
7.3.170.0130.01016.03
7.3.160.0170.00316.24
7.3.150.0120.00816.14
7.3.140.0070.01316.17
7.3.130.0110.00716.08
7.3.120.0130.00616.03
7.3.110.0150.00616.01
7.3.100.0130.00316.09
7.3.90.0150.00316.33
7.3.80.0060.01216.11
7.3.70.0110.00516.14
7.3.60.0150.00316.30
7.3.50.0090.00616.30
7.3.40.0000.01916.30
7.3.30.0120.00316.37
7.3.20.0100.00616.40
7.3.10.0060.01216.13
7.3.00.0130.00316.20
7.2.340.0230.01016.22
7.2.330.0140.01416.20
7.2.320.0200.01216.20
7.2.310.0240.00716.27
7.2.300.0180.01216.16
7.2.290.0180.01516.21
7.2.280.0270.00516.26
7.2.270.0110.01816.20
7.2.260.0230.01016.20
7.2.250.0280.00416.21
7.2.240.0250.00716.20
7.2.230.0190.01516.12
7.2.220.0180.01416.23
7.2.210.0230.01016.19
7.2.200.0220.01216.39
7.2.190.0160.01216.30
7.2.180.0100.02016.35
7.2.170.0110.01716.36
7.2.160.0200.01016.39
7.2.150.0220.00916.36
7.2.140.0220.00716.45
7.2.130.0230.01016.49
7.2.120.0220.01316.52
7.2.110.0190.01416.51
7.2.100.0220.00916.52
7.2.90.0240.00616.38
7.2.80.0190.01116.36
7.2.70.0160.01616.40
7.2.60.0240.01116.39
7.2.50.0170.01616.39
7.2.40.0180.01616.46
7.2.30.0140.01416.51
7.2.20.0290.01116.58
7.2.10.0170.01716.46
7.2.00.0270.00616.36
7.1.330.0230.00615.39
7.1.320.0230.01115.42
7.1.310.0170.01415.39
7.1.300.0120.01215.48
7.1.290.0180.00915.54
7.1.280.0240.00315.47
7.1.270.0260.00415.48
7.1.260.0280.00815.36
7.1.250.0160.00815.29
7.1.240.0180.00915.28
7.1.230.0270.00415.49
7.1.220.0220.00615.49
7.1.210.0200.00715.37
7.1.200.0180.01115.41
7.1.190.0180.00915.39
7.1.180.0230.00815.32
7.1.170.0160.01015.39
7.1.160.0160.01315.38
7.1.150.0180.00815.38
7.1.140.0200.00515.29
7.1.130.0110.02115.38
7.1.120.0110.01815.36
7.1.110.0250.00615.32
7.1.100.0410.01015.35
7.1.90.0220.00715.30
7.1.80.0180.01115.41
7.1.70.0230.00915.15
7.1.60.0170.00915.50
7.1.50.0110.01415.45
7.1.40.0220.00615.40
7.1.30.0280.00015.44
7.1.20.0180.00715.38
7.1.10.0170.00915.44
7.1.00.0180.00915.32
7.0.330.0180.00514.93
7.0.320.0180.00814.92
7.0.310.0200.00314.88
7.0.300.0180.00914.96
7.0.290.0120.01215.01
7.0.280.0140.01014.96
7.0.270.0160.00815.01
7.0.260.0150.01214.96
7.0.250.0160.01015.16
7.0.240.0430.01015.14
7.0.230.0230.00415.21
7.0.220.0180.00915.20
7.0.210.0190.00615.10
7.0.200.0110.01115.21
7.0.190.0200.00615.11
7.0.180.0100.01315.24
7.0.170.0230.00015.26
7.0.160.0250.01515.03
7.0.150.0200.00315.13
7.0.140.0250.00615.04
7.0.130.0310.00615.07
7.0.120.0240.00715.13
7.0.110.0230.00415.00
7.0.100.0230.00414.98
7.0.90.0150.00914.96
7.0.80.0160.01015.02
7.0.70.0120.01515.00
7.0.60.0250.00415.00
7.0.50.0230.00714.93
7.0.40.0240.01015.02
7.0.30.0140.01415.12
7.0.20.0200.01214.97
7.0.10.0140.01415.07
7.0.00.0150.01114.96
5.6.400.0200.01015.81
5.6.390.0210.00815.61
5.6.380.0210.00715.64
5.6.370.0110.01315.66
5.6.360.0120.01015.66
5.6.350.0140.01215.61
5.6.340.0320.00015.62
5.6.330.0160.01415.78
5.6.320.0130.01315.82
5.6.310.0180.00915.55
5.6.300.0150.00915.61
5.6.290.0280.00315.54
5.6.280.0230.00415.56
5.6.270.0190.01215.61
5.6.260.0150.01115.53
5.6.250.0160.01215.60
5.6.240.0220.01415.61
5.6.230.0100.01515.92
5.6.220.0210.00915.82
5.6.210.0260.00715.82
5.6.200.0160.01715.84
5.6.190.0250.00516.00
5.6.180.0210.00815.76
5.6.170.0120.01915.86
5.6.160.0180.00915.89
5.6.150.0170.01215.99
5.6.140.0190.00815.77
5.6.130.0200.00915.85
5.6.120.0140.01415.77
5.6.110.0210.00715.75
5.6.100.0140.01915.66
5.6.90.0130.01715.60
5.6.80.0180.01215.63
5.6.70.0160.00815.79
5.6.60.0270.01215.67
5.6.50.0210.00615.83
5.6.40.0210.00715.64
5.6.30.0220.00615.66
5.6.20.0180.00915.67
5.6.10.0260.00315.67
5.6.00.0140.01415.60
5.5.380.0230.00415.74
5.5.370.0230.00315.79
5.5.360.0190.00815.60
5.5.350.0210.01015.51
5.5.340.0210.01115.64
5.5.330.0130.01915.59
5.5.320.0130.01315.51
5.5.310.0230.00415.68
5.5.300.0130.01515.50
5.5.290.0140.01415.51
5.5.280.0170.01415.68
5.5.270.0280.00915.64
5.5.260.0180.00715.47
5.5.250.0130.01315.69
5.5.240.0200.00815.71
5.5.230.0160.00815.59
5.5.220.0140.01115.56
5.5.210.0150.00915.71
5.5.200.0130.01315.54
5.5.190.0240.00415.43
5.5.180.0160.01215.47
5.5.170.0290.01115.47
5.5.160.0160.00715.48
5.5.150.0170.00615.43
5.5.140.0200.00615.33
5.5.130.0230.00615.32
5.5.120.0080.01515.31
5.5.110.0220.00315.55
5.5.100.0160.01015.61
5.5.90.0140.01115.57
5.5.80.0230.00615.64
5.5.70.0270.00015.56
5.5.60.0160.00815.50
5.5.50.0210.01115.60
5.5.40.0130.01315.52
5.5.30.0160.01015.61
5.5.20.0200.00415.69
5.5.10.0120.01215.68
5.5.00.0240.00715.59
5.4.450.0210.00314.80
5.4.440.0090.00914.80
5.4.430.0160.00514.80
5.4.420.0130.00614.80
5.4.410.0170.00714.80
5.4.400.0170.00314.80
5.4.390.0150.00614.80
5.4.380.0120.00814.80
5.4.370.0190.00314.80
5.4.360.0200.00414.80
5.4.350.0170.00314.80
5.4.340.0150.00414.80
5.4.330.0100.01714.80
5.4.320.0140.00714.80
5.4.310.0150.00714.80
5.4.300.0150.00414.80
5.4.290.0150.00414.80
5.4.280.0130.00714.80
5.4.270.0140.00714.80
5.4.260.0170.00314.80
5.4.250.0180.00314.80
5.4.240.0050.01414.80
5.4.230.0130.00414.80
5.4.220.0100.01014.80
5.4.210.0150.00614.80
5.4.200.0230.00014.80
5.4.190.0130.00814.80
5.4.180.0090.01214.80
5.4.170.0130.01014.80
5.4.160.0120.00914.80
5.4.150.0200.00014.80
5.4.140.0070.01614.80
5.4.130.0140.01014.80
5.4.120.0160.00914.80
5.4.110.0100.01414.80
5.4.100.0180.00314.80
5.4.90.0090.00914.80
5.4.80.0170.00314.80
5.4.70.0120.00914.80
5.4.60.0120.00814.80
5.4.50.0200.00414.80
5.4.40.0140.00814.80
5.4.30.0130.00514.80
5.4.20.0110.00714.80
5.4.10.0050.01414.80
5.4.00.0070.01814.80
5.3.290.0220.00314.80
5.3.280.0130.00714.80
5.3.270.0220.00414.80
5.3.260.0200.00314.80
5.3.250.0100.01014.80
5.3.240.0080.01214.80
5.3.230.0100.01014.80
5.3.220.0150.00614.80
5.3.210.0120.00814.80
5.3.200.0150.00614.80
5.3.190.0130.00914.80
5.3.180.0120.00814.80
5.3.170.0120.00914.80
5.3.160.0080.01214.80
5.3.150.0150.00914.80
5.3.140.0130.01314.80
5.3.130.0190.00014.80
5.3.120.0140.00714.80
5.3.110.0150.00614.80
5.3.100.0160.00314.80
5.3.90.0170.00614.80
5.3.80.0200.00614.80
5.3.70.0190.00514.80
5.3.60.0170.00714.80
5.3.50.0100.01014.80
5.3.40.0120.00914.80
5.3.30.0110.01514.80
5.3.20.0150.00914.80
5.3.10.0240.00314.80
5.3.00.0160.01014.80
5.2.170.0070.01114.80
5.2.160.0110.00714.80
5.2.150.0140.00714.80
5.2.140.0150.00414.80
5.2.130.0100.01014.80
5.2.120.0150.00614.80
5.2.110.0080.01214.80
5.2.100.0180.00314.80
5.2.90.0150.00414.80
5.2.80.0140.00614.80
5.2.70.0130.00814.80
5.2.60.0150.00514.80
5.2.50.0150.00314.80
5.2.40.0070.01414.80
5.2.30.0090.00914.80
5.2.20.0130.00314.80
5.2.10.0090.00914.80
5.2.00.0100.00714.80
5.1.60.0090.00614.80
5.1.50.0040.01114.80
5.1.40.0090.00614.80
5.1.30.0150.00314.80
5.1.20.0140.00314.80
5.1.10.0050.01414.80
5.1.00.0110.00814.80
5.0.50.0100.00314.80
5.0.40.0070.00614.80
5.0.30.0060.00614.80
5.0.20.0100.00514.80
5.0.10.0100.00314.80
5.0.00.0080.00414.80
4.4.90.0070.00414.80
4.4.80.0040.00814.80
4.4.70.0000.00914.80
4.4.60.0060.00314.80
4.4.50.0050.00514.80
4.4.40.0050.00314.80
4.4.30.0050.00314.80
4.4.20.0150.00414.80
4.4.10.0090.00014.80
4.4.00.0000.01014.80
4.3.110.0000.00914.80
4.3.100.0070.00214.80
4.3.90.0080.00014.80
4.3.80.0080.00014.80
4.3.70.0100.00014.80
4.3.60.0100.00014.80
4.3.50.0060.00214.80
4.3.40.0050.00314.80
4.3.30.0030.00314.80
4.3.20.0030.00614.80
4.3.10.0000.00714.80
4.3.00.0030.00614.80

preferences:
31.91 ms | 403 KiB | 5 Q