3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file = <<< FILE users["524bd089-2a7b-4a71-ba23-16354d6351ae"] = { "id" : "524bd089-2a7b-4a71-ba23-16354d6351ae", "firstName" : "A", "lastName" : "T", "pictureName" : "66s2c.jpg", "username" : "a", "libraries" : [ "lEy27AZavfSR", "l0yApAoo2l4b", "lJl22YOtacxY", "l0UhMCvrMmka", "lJMWpIoFnaK4", "lCZ9cYYjVJcv", "l8kynpyoaej7" ] } libraries["lEy27AZavfSR"] = { "id" : "lEy27AZavfSR", "name" : "My Main Library", "description" : null, "numKeeps" : 0, "keeps" : [ ] } keeps["k4r5UIugqgfk"] = { "id" : "k4r5UIugqgfk", "keptAt" : 1449613295000, "lastActivityAt" : 1449613295000, "title" : "", "url" : "", "note" : null, "tags" : [ ], "libraries" : [ "lJl22YOtacxY" ], "summary" : "", "messages" : [ ] } FILE; preg_match_all("/(\w+)\[\"([^\]]*)\"\]\s*\=\s\{([^\}]*)\}*/", $file, $matches); foreach ($matches[1] as $key => $value) { $data[$value][$matches[2][$key]] = json_decode('{'.$matches[3][$key].'}'); } print_r($data);

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.80.0040.00417.97
8.3.70.0100.00616.63
8.3.60.0060.01218.43
8.3.50.0120.01022.02
8.3.40.0000.01519.09
8.3.30.0210.00018.93
8.3.20.0040.00420.33
8.3.10.0080.00023.71
8.3.00.0080.00019.63
8.2.200.0060.00318.41
8.2.190.0110.00317.00
8.2.180.0170.00016.50
8.2.170.0090.00622.96
8.2.160.0000.01419.30
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00419.91
8.2.110.0060.00322.20
8.2.100.0080.00418.03
8.2.90.0060.00317.88
8.2.80.0030.00618.89
8.2.70.0030.00617.75
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0000.00718.35
8.2.30.0000.00818.25
8.2.20.0000.00917.94
8.2.10.0000.00818.30
8.2.00.0040.00418.30
8.1.290.0030.00630.84
8.1.280.0140.00025.92
8.1.270.0040.00423.84
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00623.80
8.1.230.0060.00619.22
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0000.00917.61
8.1.190.0090.00017.60
8.1.180.0040.00418.10
8.1.170.0000.00718.77
8.1.160.0050.00218.85
8.1.150.0020.00520.63
8.1.140.0000.00719.70
8.1.130.0000.00717.80
8.1.120.0040.00417.69
8.1.110.0030.00517.62
8.1.100.0050.00217.64
8.1.90.0040.00417.69
8.1.80.0000.00717.61
8.1.70.0000.00717.57
8.1.60.0000.00817.68
8.1.50.0030.00617.69
8.1.40.0030.00617.74
8.1.30.0030.00517.89
8.1.20.0090.00017.88
8.1.10.0030.00517.79
8.1.00.0060.00317.55
8.0.300.0040.00420.03
8.0.290.0070.00017.00
8.0.280.0000.00718.50
8.0.270.0030.00317.36
8.0.260.0070.00017.23
8.0.250.0040.00417.09
8.0.240.0000.00717.18
8.0.230.0070.00017.22
8.0.220.0000.00817.11
8.0.210.0000.00817.14
8.0.200.0040.00417.07
8.0.190.0030.00517.08
8.0.180.0040.00417.05
8.0.170.0030.00617.05
8.0.160.0070.00017.05
8.0.150.0000.00816.99
8.0.140.0000.00817.16
8.0.130.0000.00613.55
8.0.120.0040.00417.20
8.0.110.0000.00716.98
8.0.100.0080.00017.03
8.0.90.0040.00417.14
8.0.80.0150.00017.02
8.0.70.0000.00717.18
8.0.60.0040.00417.08
8.0.50.0080.00017.02
8.0.30.0050.01617.32
8.0.20.0070.01317.45
8.0.10.0040.00417.10
8.0.00.0110.00716.99
7.4.330.0030.00315.11
7.4.320.0030.00316.85
7.4.300.0030.00316.89
7.4.290.0020.00516.68
7.4.280.0000.00916.59
7.4.270.0000.00716.85
7.4.260.0030.00616.87
7.4.250.0000.00716.86
7.4.240.0000.00716.76
7.4.230.0030.00316.85
7.4.220.0110.00716.75
7.4.210.0090.00616.69
7.4.200.0050.00216.78
7.4.160.0110.00916.64
7.4.150.0110.00717.40
7.4.140.0120.00717.86
7.4.130.0160.00316.70
7.4.120.0080.01016.77
7.4.110.0170.00616.60
7.4.100.0030.01316.62
7.4.90.0090.00916.74
7.4.80.0120.00619.39
7.4.70.0130.00316.84
7.4.60.0130.01016.66
7.4.50.0100.00716.74
7.4.40.0050.01416.74
7.4.30.0090.00916.54
7.4.20.0120.00616.74
7.4.10.0120.00716.72
7.4.00.0050.01216.19
7.3.330.0030.00313.33
7.3.320.0050.00013.34
7.3.310.0000.00716.56
7.3.300.0070.00016.46
7.3.290.0060.00816.54
7.3.280.0070.01016.52
7.3.270.0100.00717.40
7.3.260.0070.01016.73
7.3.250.0140.00716.71
7.3.240.0140.00516.77
7.3.230.0070.01116.79
7.3.210.0140.00716.54
7.3.200.0130.00316.56
7.3.190.0110.01116.52
7.3.180.0030.01716.48
7.3.170.0100.00716.59
7.3.160.0060.01616.39
7.3.150.0120.00616.41
7.3.140.0150.00716.45
7.3.130.0070.01316.45
7.3.120.0090.00916.51
7.3.110.0100.01016.62
7.3.100.0060.01216.49
7.3.90.0100.00816.52
7.3.80.0070.01216.42
7.3.70.0070.01216.44
7.3.60.0120.00816.59
7.3.50.0060.01116.54
7.3.40.0080.00616.43
7.3.30.0060.00716.50
7.3.20.0090.01017.38
7.3.10.0130.00617.26
7.3.00.0100.01117.16
7.2.330.0190.00016.89
7.2.320.0110.00617.05
7.2.310.0140.00316.88
7.2.300.0030.01316.70
7.2.290.0070.01116.64
7.2.280.0140.00716.91
7.2.270.0170.01016.66
7.2.260.0070.01216.67
7.2.250.0100.00916.81
7.2.240.0110.01016.85
7.2.230.0100.01016.76
7.2.220.0100.00516.68
7.2.210.0090.01016.75
7.2.200.0090.01016.80
7.2.190.0080.01016.66
7.2.180.0070.01316.86
7.2.170.0070.00916.77
7.2.160.0080.00916.77
7.2.150.0130.00717.70
7.2.140.0100.00717.50
7.2.130.0140.00917.53
7.2.120.0130.00717.42
7.2.110.0150.00717.49
7.2.100.0210.00517.54
7.2.90.0150.00717.53
7.2.80.0130.00817.38
7.2.70.0150.00817.45
7.2.60.0150.01017.30
7.2.50.0140.00817.37
7.2.40.0110.00917.39
7.2.30.0160.00717.52
7.2.20.0060.01217.41
7.2.10.0100.01117.43
7.2.00.0090.00717.98
7.1.330.0170.00816.68
7.1.320.0180.00716.48
7.1.310.0170.00916.66
7.1.300.0280.00716.62
7.1.290.0130.00716.61
7.1.280.0150.00816.54
7.1.270.0170.00516.70
7.1.260.0170.00716.55
7.1.250.0170.00516.30
7.1.240.0210.00316.58
7.1.230.0140.00716.62
7.1.220.0170.00616.58
7.1.210.0210.00116.61
7.1.200.0130.00616.34
7.1.190.0150.00816.57
7.1.180.0140.01116.64
7.1.170.0170.00616.60
7.1.160.0180.00716.50
7.1.150.0130.01016.63
7.1.140.0140.00716.64
7.1.130.0150.00616.50
7.1.120.0120.01116.67
7.1.110.0130.00816.62
7.1.100.0120.01116.72
7.1.90.0170.00716.55
7.1.80.0170.00716.61
7.1.70.0080.00816.85
7.1.60.0170.00716.90
7.1.50.0130.00916.64
7.1.40.0090.00916.80
7.1.30.0110.00816.79
7.1.20.0130.00716.77
7.1.10.0110.00816.62
7.1.00.0090.00616.71
7.0.330.0130.01016.24
7.0.320.0120.01316.32
7.0.310.0160.00716.28
7.0.300.0190.00616.29
7.0.290.0200.00716.28
7.0.280.0140.00816.19
7.0.270.0120.01016.36
7.0.260.0130.01116.23
7.0.250.0110.01116.46
7.0.240.0130.01116.28
7.0.230.0100.01316.44
7.0.220.0140.00916.38
7.0.210.0110.01116.46
7.0.200.0190.00516.50
7.0.190.0110.01016.55
7.0.180.0080.01116.31
7.0.170.0090.00916.40
7.0.160.0120.00616.47
7.0.150.0110.00816.51
7.0.140.0090.01016.44
7.0.130.0100.01016.52
7.0.120.0100.00916.45
7.0.110.0060.01116.34
7.0.100.0110.00916.36
7.0.90.0160.00616.41
7.0.80.0100.01016.45
7.0.70.0120.00616.30
7.0.60.0120.00916.26
7.0.50.0130.00416.37
7.0.40.0180.00615.11
7.0.30.0110.01015.03
7.0.20.0100.00615.03
7.0.10.0110.00715.11
7.0.00.0160.00415.02
5.6.400.0180.00816.20
5.6.390.0090.01616.05
5.6.380.0090.01316.06
5.6.370.0160.01115.96
5.6.360.0110.01516.07
5.6.350.0230.00815.88
5.6.340.0120.00916.10
5.6.330.0120.01216.08
5.6.320.0160.00815.95
5.6.310.0170.00816.16
5.6.300.0090.02517.68
5.6.290.0190.01817.65
5.6.280.0130.01917.71
5.6.270.0080.02917.69
5.6.260.0100.01917.68
5.6.250.0100.03017.76
5.6.240.0080.02717.71
5.6.230.0100.02017.67
5.6.220.0110.03117.63
5.6.210.0110.02117.50
5.6.200.0130.02217.58
5.6.190.0100.02317.62
5.6.180.0130.02217.73
5.6.170.0120.02117.69
5.6.160.0100.02617.57
5.6.150.0130.01817.72
5.6.140.0130.02117.69
5.6.130.0120.01917.54
5.6.120.0140.01917.62
5.6.110.0100.02117.55
5.6.100.0100.02317.63
5.6.90.0140.01917.59
5.6.80.0130.02017.34
5.6.70.0160.01817.43
5.6.60.0110.01917.33
5.6.50.0110.01917.32
5.6.40.0120.01917.52
5.6.30.0120.02017.46
5.6.20.0140.01917.39
5.6.10.0110.02517.39
5.6.00.0120.02017.39
5.5.380.0120.03416.93
5.5.370.0130.02716.73
5.5.360.0110.02716.81
5.5.350.0140.02316.74
5.5.340.0120.02917.11
5.5.330.0120.02617.01
5.5.320.0180.02517.14
5.5.310.0110.03017.06
5.5.300.0080.02817.02
5.5.290.0100.03016.98
5.5.280.0140.02817.12
5.5.270.0130.03117.00
5.5.260.0280.02416.87
5.5.250.0150.02416.90
5.5.240.0180.02816.68
5.5.230.0100.03016.73
5.5.220.0130.03016.49
5.5.210.0140.02716.75
5.5.200.0130.02416.71
5.5.190.0130.02916.51
5.5.180.0190.02516.65
5.5.170.0200.01416.08
5.5.160.0120.03116.65
5.5.150.0150.02616.74
5.5.140.0130.02516.62
5.5.130.0100.02616.80
5.5.120.0140.02716.68
5.5.110.0270.02016.80
5.5.100.0150.02516.72
5.5.90.0130.03116.47
5.5.80.0100.02916.38
5.5.70.0150.04016.63
5.5.60.0090.02816.58
5.5.50.0170.02116.66
5.5.40.0130.05016.47
5.5.30.0130.02416.60
5.5.20.0140.04816.39
5.5.10.0150.02216.65
5.5.00.0130.02516.62
5.4.450.0070.03819.56
5.4.440.0040.04619.42
5.4.430.0070.03919.46
5.4.420.0030.04819.30
5.4.410.0030.04019.26
5.4.400.0070.03619.08
5.4.390.0030.04118.98
5.4.380.0030.03619.20
5.4.370.0090.03119.13
5.4.360.0030.04119.23
5.4.350.0310.04119.05
5.4.340.0030.04319.14
5.4.320.0070.04118.88
5.4.310.0070.03819.07
5.4.300.0030.05719.04
5.4.290.0070.08118.96
5.4.280.0000.04519.09
5.4.270.0070.03419.06
5.4.260.0100.03018.94
5.4.250.0030.03819.11
5.4.240.0030.04919.05
5.4.230.0070.07819.05
5.4.220.0000.04119.04
5.4.210.0070.04019.21
5.4.200.0030.05418.91
5.4.190.0090.03519.05
5.4.180.0130.05019.05
5.4.170.0030.03819.22
5.4.160.0000.04618.92
5.4.150.0000.04618.92
5.4.140.0030.04916.68
5.4.130.0060.07116.51
5.4.120.0060.03816.66
5.4.110.0070.03516.75
5.4.100.0030.03816.68
5.4.90.0030.03916.70
5.4.80.0070.03616.54
5.4.70.0030.03916.46
5.4.60.0100.03016.68
5.4.50.0000.04116.55
5.4.40.0030.03716.75
5.4.30.0030.03716.60
5.4.20.0000.04016.68
5.4.10.0070.05716.70
5.4.00.0030.03915.90
5.3.290.0030.04414.97
5.3.280.0100.07214.79
5.3.270.0000.05114.89
5.3.260.0030.04014.67
5.3.250.0000.04414.67
5.3.240.0000.04514.64
5.3.230.0030.04014.80
5.3.220.0000.04214.86
5.3.210.0060.03514.57
5.3.200.0000.04314.77
5.3.190.0030.03714.57
5.3.180.0230.03614.64
5.3.170.0070.03614.93
5.3.160.0000.04314.76
5.3.150.0030.04514.83
5.3.140.0100.03714.63
5.3.130.0040.03514.74
5.3.120.0140.05114.86
5.3.110.0100.03614.75
5.3.100.0030.03614.14
5.3.90.0000.03814.23
5.3.80.0000.04014.21
5.3.70.0000.03814.14
5.3.60.0100.03514.27
5.3.50.0090.03114.14
5.3.40.0030.03414.15
5.3.30.0000.03914.14
5.3.20.0030.03514.14
5.3.10.0060.03114.14
5.3.00.0060.03514.14
5.2.170.0030.03114.14
5.2.160.0090.02414.14
5.2.150.0000.03414.14
5.2.140.0000.03514.14
5.2.130.0000.03014.14
5.2.120.0000.03114.14
5.2.110.0000.03314.14
5.2.100.0000.03314.14
5.2.90.0030.03014.14
5.2.80.0100.02614.14
5.2.70.0070.02614.14
5.2.60.0000.03714.14
5.2.50.0000.03414.14
5.2.40.0030.03014.14
5.2.30.0000.03514.14
5.2.20.0060.02614.14
5.2.10.0070.02814.14
5.2.00.0000.03814.14
5.1.60.0040.03214.14
5.1.50.0000.02614.14
5.1.40.0030.02214.14
5.1.30.0030.02714.14
5.1.20.0000.03814.14
5.1.10.0100.01714.14
5.1.00.0040.02514.14
5.0.50.0000.02214.14
5.0.40.0030.01914.14
5.0.30.0030.03014.14
5.0.20.0000.02114.14
5.0.10.0030.01714.14
5.0.00.0000.03214.14
4.4.90.0000.01614.14
4.4.80.0030.01314.14
4.4.70.0030.01314.14
4.4.60.0000.01614.14
4.4.50.0030.01614.14
4.4.40.0100.02014.14
4.4.30.0070.01414.14
4.4.20.0000.01714.14
4.4.10.0000.01614.14
4.4.00.0030.02214.14
4.3.110.0000.01614.14
4.3.100.0000.02114.14
4.3.90.0030.02114.14
4.3.80.0030.02114.14
4.3.70.0000.01614.14
4.3.60.0000.01614.14
4.3.50.0090.01514.14
4.3.40.0030.02514.14
4.3.30.0000.01814.14
4.3.20.0030.01314.14
4.3.10.0000.01814.14
4.3.00.0000.01614.14

preferences:
60.8 ms | 401 KiB | 5 Q